T
Tagore
Hi,
Following code is showing "error: field 'c' has incomplete type"
on compiling
struct a
{
struct b c;
};
struct b
{
int v;
};
but following code is fine
struct a
{
struct b *c; // pointer to b
};
struct b
{
int v;
};
Why such different behaviors shown by above codes?
Thanks,
Following code is showing "error: field 'c' has incomplete type"
on compiling
struct a
{
struct b c;
};
struct b
{
int v;
};
but following code is fine
struct a
{
struct b *c; // pointer to b
};
struct b
{
int v;
};
Why such different behaviors shown by above codes?
Thanks,