Structure Declaration in C

The first way is to declare a structure variable immediately after the structure definition, as follows:

struct address
{
int house_number;
char street_name[50];
int zip_code;
char country[50];
} struct_var1, struct_var2;

In the second way, you can declare the structure variable at a different location after structure definition. Here is structure declaration syntax:

struct address
{
int house_number;
char street_name[50];
int zip_code;
char country[50];
} ;
struct address struct_var1, struct_var2;