/* using incrementer */

#include

void main()

{

int i,j;

int x,y;

j=i=6;

printf(“initial value of i = %d\n”,j);

x=i++;

printf(“x=i++, value of x=%d, and value of i=%d\n”,x,i); //post increment

i=j;

y=++i;

printf(“initial value i = %d\n”,j);

printf(“y=++i, value of y=%d, and value of i=%d\n”,y,i); // pre increment

}

run

initial value of i = 6

x=i++, value of x=6, and value of i=7

initial value i = 6

y=++i, value of y=7, and value of i=7