if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

Decrement operator in different model in c/c++

int a=8;
Tutorial answer:

Debugging explanation:
First it execute line from right to left.but it will print from right to left.
read from left
a is 8
--a is 7
++a is 8
a—decrement operator come after the variable so first it assign then it will decrement.(see related post)8
a++.now before a - -is it decrease the value to 7

Related post