In C programming, structures are used to define a record. For example, you want to keep track of all the books in a library. You have to track the following attributes of each book −
- Title
- Author
- Subject
- Book ID
Here is how you can use structure to declare the book structure:
struct Books {
char title[50];
char author[50];
char subject[100];
int book_id;
} book;
If you want to learn C programming, then check out this C Language Course by Intellipaat.
Also, watch this YouTube tutorial on C programming: