Showing posts with label Pre and Post increment test. Show all posts
Showing posts with label Pre and Post increment test. Show all posts

Sunday, March 13, 2011

Pre and Post increment test

# include <stdio.h>
# include <stdlib.h>

int main()
{
int x=8;
x-=--x-x--;
printf("%d\n",x);


return 0;
}

OUTPUT:
6
Press any key to continue . . .