Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!tank!mimsy!chris From: chris@mimsy.UUCP (Chris Torek) Newsgroups: comp.lang.c Subject: Re: C inconsistency? Message-ID: <16654@mimsy.UUCP> Date: 31 Mar 89 12:00:12 GMT References: <1989Mar30.192903.28426@gpu.utcs.toronto.edu> Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742 Lines: 21 In article <1989Mar30.192903.28426@gpu.utcs.toronto.edu> sarathy@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@mimsy.umd.edu Path: uunet!mimsy!chris