Array of Structure :
Introduction :
Structure is used to store the information of One particular object but if we need to store such 100 objects then Array of Structure is used.Example :
Explanation :struct Bookinfo { char[20] bname; int pages; int price; }Book[100];
- Here Book structure is used to Store the information of one Book.
- In case if we need to store the Information of 100 books then Array of Structure is used.
- b1[0] stores the Information of 1st Book , b1[1] stores the information of 2nd Book and So on We can store the information of 100 books.
book[3] is shown Below
Book[1].pages


0 comments
Post a Comment
Your Feedback :This is Growing Site and Your Feedback is important for Us to improve the Site performance & Quality of Content.Feel Free to contact and Please Provide Name & Contact Email