Professional Documents
Culture Documents
getch();
}
Initializing structure variable
• Syntax
structure-name identifier={value1,…}
• Example
student s={1,786,90.65,’A’}
Array of Structures
• An array can be of user-defined type such as a structure.
• Can be used to store many records.
• Example
struct book
{ int bookid, pages;
float price;
};
book b[3];