Nested structures in C: Structures inside a structure

A structure is called a nested structure when it is a member of another structure.

For a structure:

struct address


char name[60];

char street[100];

char city[50];

char state[40];

char country[40];

long int zip;


To declare a nested structure:

struct empl {

struct address address_employee;

float wages;


Leave a Reply