Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. #include <stdio.h>
  2.  
  3. int main(void){
  4.    
  5.     //define a struct
  6.     struct book{
  7.         char id;
  8.         int score;
  9.     };
  10.     //declare a struct variable b1
  11.     struct book b1;
  12.     //using dot to manipulate members.
  13.     b1.id='1';
  14.     b1.score=60;
  15.     printf("id, %c\n", b1.id);
  16.     printf("score, %d\n", b1.score);
  17.    
  18.    
  19.     return 0;
  20. }