21./*Write a program to use of main post increment operators*/
#include<stdio.h>
#include<conio.h>
main()
{
int x,y;
clrscr();
x=20;
y=x+++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:7
The Value of Y is:10
No comments:
Post a Comment