Saturday, 10 December 2011

Write a program to use of post increment operator in c

#include
#include
main()
{
int x,y;
clrscr();
x=5;
y=x++;
printf("\n The Value of X is:-%d",x);
printf("\n The Value of Y is:-%d",y);
getch();
}



OUTPUT
The Value of X is:6
The Value of Y is:5

No comments:

Post a Comment