Home / Engineering / Data Structure and Algorithms (DSA) / Question

M

Mr. Dubey • 51.43K Points
Coach

Q.) What is error in following declaration?
struct outer{ int a;
struct inner{
char c;
};
};

(A) nesting of structure is not allowed in c
(B) it is necessary to initialize the member variable
(C) inner structure must have name
(D) outer structure must have name
Correct answer : Option (C) - inner structure must have name

Share

Discusssion

Login to discuss.