+ 1
What is difference between postfix and increment operator
8 Respuestas
+ 2
Increment can be done in either prefix or postfix fashion.
+ 1
But postfix is worked as increment operator in java.why
+ 1
Thanks drax
0
With example
0
int i =0;
cout << ++i; //display 1
cout << i++;//display 1
cout << i;// display 2
0
Explains me please
0
So basically, prefix increment force the evaluation of the increment before anything, whilst postfix is done after.