0 votes
1 view
in C Programming by (36k points)
recategorized by
Can anyone explain the structure in C?

1 Answer

0 votes
by (86.8k 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

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...