Compound data type in C: Structures having members or elements or fields

A structure is a grouping of variables under one name. It is a compound data type in which all the members are logically related. A structure is a convenient way of keeping related information under one name. The variables of a structure are generally called as members or elements or fields.

Syntax of a structure:

struct <structure name>


type member 1 ;

type member 2 ;

type member 3 ;



} variables;


struct address


char name[60];

char street[100];

char city[50];

char state[40];

char country[40];

long int zip;


Leave a Reply