by Keith Thompson <kst-u@[EMAIL PROTECTED]
>
May 5, 2008 at 01:27 AM
new <luvraghu@[EMAIL PROTECTED]
> writes:
> 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) <kst-u@[EMAIL PROTECTED]
>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"