Virajsinh

B_PRM_06

Oct 9th, 2017
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1. /* Write a Program Individual Strcuture Members to a Funcation  */
  2.  
  3. #include<stdio.h>
  4. #include<conio.h>
  5.  
  6. typedef struct
  7. {
  8.     int x, y;
  9. }point;
  10.  
  11. void display(int, int);
  12.  
  13. void main()
  14. {
  15.     //clrscr();
  16.     point pl = {2, 4};
  17.     clrscr();
  18.     printf("Value x And y : ");
  19.     display(pl.x,pl.y);
  20.     getch();
  21. }
  22.  
  23. void display(int a, int b)
  24. {
  25.     printf("%d %d",a,b);
  26. };
Add Comment
Please, Sign In to add comment