#include<stdio.h> #include<conio.h> void main() { int x=5,y=10,*a,*b,*c; clrscr(); a = &y; printf("y:%d",y); b = &x; printf("x:%d",x); *a = ++y - x++;
printf("\ny:%d",y);
printf("x:%d",x);
printf("a:%d",*a);
*b = --y + x--;
printf("\ny:%d",y);
printf("x:%d",x);
printf("b:%d",*b);
x=(*a + *b)+(*a - *b); *c = *b;
printf("\nx=%d and y=%d",x,y);
getch();
}
No comments:
Post a Comment