#include <stdio.h>

int main()
{
	int i = 5;
	int c;

	printf("The value of i is %d\n", i);
	c = i++;

	/*c is given the value of i prior to incrementing i*/
	printf("If the following:  c = i++, the value of c is %d and i is %d\n", c, i);

	printf("Now lets look at what happens with ++i\n");

	i = 5;  //reset i to 5;
	c = ++i;  //reset c

	/*i is incremented and then assigned to c*/
	printf("If the following:  c = ++i, the value of c is %d and i is %d\n", c, i);

	return 0;
}