I'm writing a C program and want to increment an integer and print it. I tried to use a less simplistic syntax and integrate the printing and incrementing steps.
printf("%i\n", age++);
I ran the code and the original value of age was printed, not the incremented form! I debugged and saw that age actually is incremented after the print line is run. If the incrementation operation is executing, why is the old value printed?