xxxxxxxxxx
struct num{
int a ;
int b;
};
int main()
{
struct num n;
//accessing the elements inside struct
n.a=10;
n.b=20;
}
xxxxxxxxxx
//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;