How to access a member or an element of a structure?

To access an element of a structure we have to use a dot operator:


For a structure:

struct address


char name[60];

char street[100];

char city[50];

char state[40];

char country[40];

long int zip;


To access zip code:


To access name:

gets (

Leave a Reply