For the following structure declaration, find the correct statement.
struct person{
char name[20];
int age;
struct person lady;
};
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.
Related Questions on Structure and Union
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above

Join The Discussion