Another bug in C compilers

Andrew Koenig ark at alice.UucP
Thu Jul 31 13:22:59 AEST 1986


> Say we have a structure declared as:
>
> struct ABC
> {
>	stuff
> };
>
> and then follow it with:
> 
> struct ABC;
> 
> I don't get any error message.

You are declaring an empty list of variables.  You can say:

	struct ABC u1, u2, u3;
	struct ABC v1, v2;
	struct ABC w1;
	struct ABC ;

They are all legitimate.



More information about the Comp.lang.c mailing list