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

Decrement operator in c/c++ | same line | after the variable

main()
{
int var=4;
Printf(“%d”,var--);
}

Tutorial answer: 4

Debugging solution:var-- indicate
first it assign the value
then value is decrement. Because decrement operator come the after the variable.

Related post