Advertisement
Guest User

Untitled

a guest
Feb 19th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.40 KB | None | 0 0
  1. #include<stdio.h>
  2. typedef struct stringname_s *Stringname;
  3. typedef struct stringpassword_s *Stringpassword;
  4. typedef struct stringaddress_s *Stringaddress;
  5. typedef struct userInfo
  6. {
  7.     int id;
  8.     int contNumber;
  9.     Stringname Name;
  10.     Stringpassword Password;
  11.     Stringaddress Address;
  12. }user;
  13. int main(void)
  14. {
  15.     user newUser;
  16.     newUser.id=42;
  17.     printf("newUser id is %d.\n",newUser.id);
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement