0
Clarify me plz
int x=10; x=x++; // here now 10 and then incremented printf("%d",x); // wen it comes here it should be 11 right ..coz it's incremented but the output is 10 not 11 ..how ??
4 Antworten
+ 6
First, it takes the old x value. Then, it increments x by one. Finally, it assigns it to the old x value.
+ 6
@corejava I edited my comment so I could explain it better. You should understand what I mean now.
+ 1
thanks buddy explain me another program plz
0
it's x++ here it will increment and wen it will comes to printf it will be 11 na ...y 10...I don't get this