/*this example looks at operators */ #include #include int main (void) { /* look at increment and decrement operators */ int i = 10, j= 4; printf("i = %i, j = %i\n",i++,j); /* the output is i = 10, j = 4 because the postfix increment i++ gets the value first and then increments it */ printf("i = %i\n",i); /* the output is now 11 because it was incremented */ printf("i = %i, j = %i\n",i,++j); /* the output is now i = 11 (unchanged) j = 5, because the prefix increment increased j before it got the value */ }