C and C++ programs and MySQL
Always thinking in engineering style...
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 . . .
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment