If I run this code in c and java int a =10; int b = ++a + a++ + –a; java give 33 correct answer but why c give 34 and how it works ?
as of my knowledge theoretically 33 is correct answer.
The compiler i use to run c code is gcc 11.4.0
If I run this code in c and java int a =10; int b = ++a + a++ + –a; java give 33 correct answer but why c give 34 and how it works ?
as of my knowledge theoretically 33 is correct answer.
New contributor
Muraliarasan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2