How is structure defined? Write syntax and example.
A structure is a collection of variable which can be same or different types.
struct <structure-tag>
{
}struct-variable-name 1>,<structure-variable-name 2>,
Example,
struct student
int, regno;
char name[50]
char class [6];
};