Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Write a Program Individual Strcuture Members to a Funcation */
- #include<stdio.h>
- #include<conio.h>
- typedef struct
- {
- int x, y;
- }point;
- void display(int, int);
- void main()
- {
- //clrscr();
- point pl = {2, 4};
- clrscr();
- printf("Value x And y : ");
- display(pl.x,pl.y);
- getch();
- }
- void display(int a, int b)
- {
- printf("%d %d",a,b);
- };
Add Comment
Please, Sign In to add comment