Call Us : +91-8376986802 (Viber, WhatsApp)

Explain structure.



A structure is a user defined data type, which groups a set of data types. It is a collection of variables of different type under single name. A structure provides a convenience to group of related data types. A structure can contain variables, pointers, other structures, arrays or pointers. A structure is defined with the keyword ‘struct’

Ex:
struct employee
{
int empid;
char name[20];
float salary;
};
..
..
struct employee Catherina;

Leave a Reply