Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in C Programming by (55.6k points)
recategorized by
Can anyone explain the structure in C?

1 Answer

0 votes
by (119k points)

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:

Related questions

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...