Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<conio.h>
- #include<stdio.h>
- union
- {
- int x,y;
- };
- void main
- {
- int i;
- union POINT POINTs[3];
- clrscr();
- POINTs[0].x=2;
- POINTs[0].y=3;
- POINTs[1].x=4;
- POINTs[1].y=5;
- POINTs[2].x=6;
- POINTs[2].y=7;
- for (i=0;i<3;i++)
- {
- printf("Co-Orinates of Points [%d] are %d And %d",i,POINTs[i].x,POINTs[i].y);
- }
- getch();
- }
Add Comment
Please, Sign In to add comment