Post fix or Prefix ?
#include <iostream.h>
void main()
{ int x = 0;
int y = 10;
x = ++ y;
// What value has x ?
}
If we used x = y ++ instead of x = ++ y what
value would x have ?
Previous slide
Next slide
Back to first slide
View graphic version