0
Please explain this
3 Antworten
+ 3
1.First prefix of x i.e. ++x evaluates (preacedence is greater than"--")and value of x will be 6
2. then x-x will be 0
3. 0-- will be -1 which assigns to z
4. last value of x will be decrements to 5
So output will be 5 -1
0
But -- has more priority than (+) right? So shouldn't we first decrease and then add the both
- 1
No Vatsav unary operators (++ , --) has greater precedence than arithmetic operators !