+ 1
I have tried the postfix in my Xamarin studio and the code is like int x = 2; int y = x++; then WHAT would be the output??
When I try to run the program the results of both is 2. I can't understand it please help
2 Respuestas
0
Yeah,I think so,but your given code is not complete,I think
0
y=2..this is because x++ means post-increment where u first use the current value of x (then if it is in a loop,in the next loop the value of x=3...)