Changes between Version 11 and Version 12 of ResumedC


Ignore:
Timestamp:
Apr 29, 2009, 3:27:39 AM (16 years ago)
Author:
Thanatermesis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ResumedC

    v11 v12  
    132132{{{
    133133#!C
    134 ++total;
    135    /* is like */
    136    total = total + 1;
    137 
    138 total++;
    139    /* is like */
    140    newtotal = total;
    141    total + 1;
    142      /* Note that in 'newtotal' is assigned the value of 'total', and AFTER, total is incremented. First is asigned and after evaluated */
     134number = 5;
     135result = number++; /* first is evaluated the expression, after is incremented, result is 5 */
     136
     137number = 5;
     138result = ++number; /* first is incremented, after is evaluated the expression, result is 6 */
    143139
    144140total += 2;