1#include <stdio.h>
2#include <string.h>
3
4typedef struct Books {
5 char title[50];
6 char author[50];
7 char subject[100];
8 int book_id;
9} Book;
10
11int main( ) {
12
13 Book book;
14
15 strcpy( book.title, "C Programming");
16 strcpy( book.author, "Nuha Ali");
17 strcpy( book.subject, "C Programming Tutorial");
18 book.book_id = 6495407;
19
20 printf( "Book title : %s\n", book.title);
21 printf( "Book author : %s\n", book.author);
22 printf( "Book subject : %s\n", book.subject);
23 printf( "Book book_id : %d\n", book.book_id);
24
25 return 0;
26}