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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -