A structure is a collection of variables referenced under one name. A structure is declared using the keyword struct as in following syntax:
struct <structure tag>
{
[public:] | [private:] | [protected:]
/* data members’ declarations */
/* member functios’ declarations */
};
Example:
struct Student
{
char Name[30];
int Rollno;
float Total_Marks;
};