c - How to declare a variable of struct that declared inside another struct? -
i have struct declared follow:
struct { struct b { int d; } c; };
how declare variable of b
outside a
? in c++ can use a::b x;
. but, in c required specifies struct
keyword before struct name.
c has flat layout; when declare struct within struct, former being put global namespace.
so, in example, struct b
.
Comments
Post a Comment