Search:

Type: Posts; User: yeKciM

Search: Search took 0.32 seconds.

  1. Replies
    7
    Views
    220

    Re: question about incrementing variables

    Thanks :D :D
    I know it's stupidity to write somethig like that code I wrote but i just wondered since if i do


    someArray[i++]

    I get ith element and "i" will be i+1 after that line. But when...
  2. Replies
    7
    Views
    220

    Re: question about incrementing variables

    It seems that there are two times incrementing... but both of them is before adding... after adding two integers, it stores value and after that there's no increment... :(
    now i'm just more...
  3. Replies
    7
    Views
    220

    Re: question about incrementing variables

    I know :D
    that's why I said it's wrong to do it like this :D
    I just wonder how does java compiler handles this situation with ++k and k++ (because stack memory is not in the physical memory but...
  4. Replies
    7
    Views
    220

    question about incrementing variables

    Hello all,
    I have perhaps one silly question... :)
    when i compile code :


    int k = 5;
    k = ++k + k++;
    System.out.println(k);
Results 1 to 4 of 4