Examveda

For the following structure declaration, find the correct statement.
struct person{
   char name[20];
   int  age;
   struct person lady;
};

A. Is a valid nested structure.

B. Uses an invalid data type.

C. Is a self referential structure.

D. Is not a valid nested structure.

E. Is a self referential structure with invalid data type.

Answer: Option D

Solution (By Examveda Team)

As we cannot create a variable of itself as a member of the structure, but a reference can be created to create a self referential structure.


This Question Belongs to C Program >> Structure And Union

Join The Discussion

Related Questions on Structure and Union