The Difference!
x = ++ y gives x the value 11 as it is equivalent to : y = y +1;
x = y;
x = y ++ gives x the value 10 as it is equivalent to : x = y;
y = y +1;
Previous slide
Next slide
Back to first slide
View graphic version