Advertisement
amine99

Untitled

Apr 2nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef struct {
  5.    char col[10];
  6.    int x,y;
  7. }point;
  8.  
  9. void read_point(point *p) {
  10.    scanf("%s %d %d",(*p).col,(*p).x,(*p).y);
  11.    printf("%s %d %d",(*p).col,(*p).x,(*p).y);
  12. }
  13.  
  14. int main() {
  15.    point p;
  16.    read_point(&p);
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement