Structs
Lesson 21Author : 🦒
Last Updated : November, 2017
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;
}