c9-1.c 256 B

1234567891011
  1. #include <stdio.h>
  2. int main()
  3. {struct student
  4. {long int num;
  5. char name[20];
  6. char sex;
  7. char addr[20];
  8. }a={10101,"Li Lin",'M',"123 Beijing Road"};
  9. printf("NO.:%ld\nname:%s\nsex:%c\naddress:%s\n",a.num,a.name,a.sex,a.addr);
  10. return 0;
  11. }