@sbi: , : , .. ++ , , "struct hack", typedef, typedef . , , , . "C" .
, , :
struct X { struct {int a; } b; } x;
x.b.a;
struct X has an external connection, although type b is anonymous. Anonymous structures can be used on the stack or in static storage, but unlike anonymous unions, which will not have advantages over individual variables. I'm not even sure that C ++ allows anonymous structures.
source
share