Virajsinh

B_PRM_14

Nov 3rd, 2017
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.35 KB | None | 0 0
  1. #include<conio.h>
  2. #include<stdio.h>
  3.  
  4. union
  5. {
  6.     int x,y;
  7. };
  8.  
  9. void main
  10. {
  11.     int i;
  12.     union POINT POINTs[3];
  13.     clrscr();
  14.     POINTs[0].x=2;
  15.     POINTs[0].y=3;
  16.     POINTs[1].x=4;
  17.     POINTs[1].y=5;
  18.     POINTs[2].x=6;
  19.     POINTs[2].y=7;
  20.    
  21.     for (i=0;i<3;i++)
  22.     {  
  23.         printf("Co-Orinates of Points [%d] are %d And %d",i,POINTs[i].x,POINTs[i].y);
  24.     }
  25.     getch();
  26.    
  27. }
Add Comment
Please, Sign In to add comment