C inconsistency?
Henry Spencer
henry at utzoo.uucp
Sat Apr 1 03:17:14 AEST 1989
In article <1989Mar30.192903.28426 at gpu.utcs.toronto.edu> sarathy at 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 at zoo.toronto.edu
More information about the Comp.lang.c
mailing list