Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: C inconsistency? Message-ID: <1989Mar31.171714.25383@utzoo.uucp> Organization: U of Toronto Zoology References: <1989Mar30.192903.28426@gpu.utcs.toronto.edu> Date: Fri, 31 Mar 89 17:17:14 GMT In article <1989Mar30.192903.28426@gpu.utcs.toronto.edu> sarathy@gpu.utcs.UUCP (Rajiv Sarathy) writes: > struct element { > char *key; > int level; > struct element **fpointer; > } > struct element *head[LEVELCAP]; /* array of pointers to struct */ You forgot the ";" after the closing "}". In code, such a semicolon is never needed and sometimes will break things. In declarations, the semicolon is absolutely mandatory. Any compiler that *accepts* the above is either being very forgiving or (more likely) is broken. -- Welcome to Mars! Your | Henry Spencer at U of Toronto Zoology passport and visa, comrade? | uunet!attcan!utzoo!henry henry@zoo.toronto.edu