struct num{
int a ;
int b;
};
int main()
{
struct num n;
//accessing the elements inside struct
n.a=10;
n.b=20;
}
//option 1
typedef struct STRING{
char *str;
int length;
} STRING;
STRING var_name;
//option 2
struct STRING{
char *str;
int length;
};
struct STRING var_name;
struct book{
int pages;
char author[30];
float price;
}b;