+ 2
Int i=5; printf("%d%d%d%d", ++i,i--,--i,i++); while compiling this. It gives 5555 . I can't understand why?
C programming language.
2 Antworten
0
U r unable to understand the output because u r not aware with the fact that in printf, expressions are solved from right to left bt printed left to right(Hoping u understand pre and post increment and decrement..)..
Now, first i++ will get solve then --i, i--, ++i.
Hoping u understand pre and post increment and decrement..
0
Thanks