Vidyalelo
C Programming · Q34

Structure and Union

Programming · C Programming · question 34

Q34

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.
Answer
E.
Is a self referential structure with invalid data type.

Answer: Option D

Solution

Answer: Option D
Solution:

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.