C inconsistency?
Chris Torek
chris at mimsy.UUCP
Fri Mar 31 22:00:12 AEST 1989
In article <1989Mar30.192903.28426 at gpu.utcs.toronto.edu>
sarathy at gpu.utcs.toronto.edu (Rajiv Sarathy) writes:
>Is this an inconsistency ?:
>
1> struct element {
2> char *key;
3> int level;
4> struct element **fpointer;
5> }
6> struct element *head[LEVELCAP]; /* array of pointers to struct */
>
>Microsoft C 5.1 in MS-DOS compiles this alright, but neither cc nor gcc are
>able to compile in UNIX 4.1 (or is it 4.2, I can't remember).
cc and gcc get gold stars; Microsoft C 5.1 gets a loud raspberry.
I have inserted numbers above. Look very closely at line 5 and
decide what is missing. Hint: it is a single character that is
generally found at the end of a statement or declaration.
--
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain: chris at mimsy.umd.edu Path: uunet!mimsy!chris
More information about the Comp.lang.c
mailing list