Monday, December 10, 2007

How to differential x+ and ++x, yand --y

How to differential x+ and ++x, yand --y

To differential x+ and ++x, yand --y

#include

int x, y ;

main()

{x= y= 9;

printf("\n%d %d", x--, --y);

printf("\n%d %d", x--, --y);

printf("\n%d %d", x--, --y);

printf("\n%d %d", x--, --y);

printf("\n%d %d\n", x--, --y);

return 0;

}

Result :


No comments: