new <lu******@gmail.comwrites:
struct abc
{
int x;
char y;
};
struct xyz
{
struct abc p[0]; //LINE 1
int q;
};
int a[0]; //LINE 2
Are the declarations in line 1 and line 2 correct?
No. An array must have at least one element.
Incidentally, you should always indent your code to reflect its
structure.
--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"