0
Please explain to me the difference between ++x and x++ ? If you could give and example that includes evaluating a y variable to
Incremental x++
2 ответов
+ 2
x=5
y=++x (x=6,y=6)
x=5
y=x++ (x=6,y=5)
+ 2
On resume if you have
int i=0;
int j = ++i; // j=1 and i=1
but if use
int i=0;
int j = i++; // j=1 and i=0