Example: struct lib_books { char title[20]; char author[15]; int pages; float price; };
structure definition: general format: struct tag_name { data type member1; data type member2; … … }the keyword struct declares a structure to holds the details of four fields namely title, author pages and price. These are members of the structures. Each member may belong to different or same data type.