union ABC
{
int a;
float b;
char c;
};
Answer: Option [B]
union is a data type in which all the members are stored in the same location. The memory size of union is equal to the memory size of the highest member variable. Each members of union can be accessed one by one. In this case size of float is 4. So the size of the union is 4.
struct Person{
char *name;
struct Person Mother, Father;
}Anita;
Answer: Option [C]
struct is new data type which contains many different types of member variables under a single name.
struct abc{int a; int b;} v[3], *p;
main()
{
p=v;
p->a=3;
p->b=p->a;
printf("\n%d\t%d", v[0].a, v[0].b);
}
Answer: Option [D]

main()
{
struct emp
{
char name[20];
int age;
float sal;
};
struct emp e={"Tiger"};
printf("\n%d%f"),e.age, e.sal;
}
Answer: Option [A]

struct
{
int a;
double d;
float cp;
}s;
void main()
{
printf("%d\t%d\t%d\t%d", sizeof(s.a), sizeof(s.d), sizeof(s.cp), sizeof(s));
}
Answer: Option [A]
