Structs
Lesson 21Author : GOUP
Last Updated : September, 2020
Code
struct Book{
char title[100];
char author[100];
}
int main(){
struct Book book1;
book1.numPages = 600;
strcpy( book1.title, "Harry Potter" );
strcpy( book1.author, "JK Rowling");
printf("%s \n", book1.title);
return 0;
}