how to create structure class in c program code example
Example 1: declare structure in c
struct num{
int a ;
int b;
};
int main()
{
struct num n;
//accessing the elements inside struct
n.a=10;
n.b=20;
}
Example 2: Structure of Structs in c
struct [structure_tag]
{
//member variable 1
//member variable 2
//member variable 3
...
}[structure_variables];