STRUCTURES is basically a user define datatype. it is a collection of elements of different datatype stored in continues memory location.
SYNTAX:
struct name
{
type element;
type element;
};
struct name variable;
where struct is a keyword.
name is a name of user define data type.
struct name variable is used to define variable globally.
EXAMPLE:
struct distance
{
int feet;
float inches;
};
struct distance d;