+3 votes
in Class 12 by kratos

How is structure defined? Write syntax and example.

1 Answer

+4 votes
by kratos
 
Best answer

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];

};

...