Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- typedef struct {
- char col[10];
- int x,y;
- }point;
- void read_point(point *p) {
- scanf("%s %d %d",(*p).col,(*p).x,(*p).y);
- printf("%s %d %d",(*p).col,(*p).x,(*p).y);
- }
- int main() {
- point p;
- read_point(&p);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement