Home > Back-end >  The small white asked the great spirit about structure of nested
The small white asked the great spirit about structure of nested

Time:11-30

Structure defined in the body structure, how to access,
I define a structure,
Struct A
{
Int x, y, z;

Struct B
{
Int w;
char c;
}
}

Now I have A pointer variable struct A * p; For the allocation of storage space, what should I write

P - & gt; B=(coercing a variable name) malloc (sizeof (p - & gt; B))
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

I want to ask next, this forced into variable name how to write
  • Related