C - Programming Language
This course covers the basics of programming in C. Work your way through the videos/articles and I'll teach you everything you need to know to start your programming journey!

Structs

Lesson 21
Author : 🦒
Last Updated : November, 2017


Code

Copystruct 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;
}