0

int a=5; b=6; c=2; int z; z=++a + a++ - b-- + c++ + ++c; printf z

Can anybody tell me the output of this.? Is it 12 r 13?

25th Aug 2018, 11:57 AM
Deepak K
1 ответ
+ 4
Deepak K it depends on compiler.. when there is combination of post and prefix operator, different compiler behaves differently and sometime same compiler behave differently at different time.. I don't see any practical examples of such statement.. one should avoid this usage..
25th Aug 2018, 12:13 PM
Ketan Lalcheta
Ketan Lalcheta - avatar