+ 1
Why the result is -1 for the below operation?
int a = 1; printf("%d", (--a + a++ + a++ + --a)); Can anyone please explain how to apply stack concept for this?
3 odpowiedzi
+ 3
Actually it depends on the compiler. Multiple shortcut statements in one row lead to unexpected behavior.
+ 1
according the solo compiler the result of this experience is "3" . I think it make sence , because there is more operation '+' and postincrement is done
0
sbkrish What's the original value of int a?