points to remember structure is user-defined data type that can store related information (even of different data typestogether structure is declared using the keyword structfollowed by the structure name the structure definition does not allocate any memory or consume storage space it just gives template that conveys to the compiler how the structure is laid out in the memory and gives details of the member names like any data typememory is allocated for the structure when we declare variable of the structure when struct name is preceded with the keyword typedefthen the struct becomes new type when the user does not explicitly initialize the structurethen automatically does it for int and float membersthe values are initialized to zero and char and string members are initialized to '\ by default structure member variable is generally accessed using (dotoperator structure can be placed within another structure that isa structure may contain another structure as its member such structure is called nested structure self-referential structures are those structures that contain reference to data of its same type that isa self-referential structurein addition to other datacontains pointer to data that is of the same type as that of the structure union is collection of variables of different data types in which memory is shared among these variables the size of union is equal to the size of its largest member the only difference between structure and union is that in case of unions information can only be stored in one member at time exercises review questions what is the advantage of using structures structure declaration reserves memory for the structure comment on this statement with valid justifications differentiate between structure and an array write short note on structures and inter-process communication explain the utility of the keyword typedef in structures explain with an example how structures are initialized is it possible to create an array of structuresexplain with the help of an example what do you understand by union differentiate between structure and union how is structure name different from structure variable explain how members of union are accessed write short note on nested structures in which applications unions can be usefulprogramming exercises declare structure that represents the following hierarchical information (astudent (broll number (cname (ifirst name (iimiddle name (iiilast name (dsex (edate of birth (iday (iimonth (iiiyear (fmarks (ienglish (iimathematics (iiicomputer science define structure to store the namean array marks[which stores the marks of three different subjectsand character grade write program to display the details of the student whose name is entered by the user use the structure definition of the first question to make an array of students