Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!microsoft!w-colinp From: w-colinp@microsoft.UUCP (Colin Plumb) Newsgroups: comp.lang.c Subject: Re: C inconsistency? Message-ID: <1204@microsoft.UUCP> Date: 1 Apr 89 02:20:17 GMT References: <1989Mar30.192903.28426@gpu.utcs.toronto.edu> Reply-To: w-colinp@microsoft.uucp (Colin Plumb) Organization: very little Lines: 30 sarathy@gpu.utcs.UUCP (Rajiv Sarathy) wrote: > struct element { > char *key; > int level; > struct element **fpointer; > } > struct element *head[LEVELCAP]; /* array of pointers to struct */ You forgot the semicolon after the closing brace. It should either be struct element { char *key; int level; struct element **fpointer; }; struct element *head[LEVELCAP]; /* array of pointers to struct */ or struct element { char *key; int level; struct element **fpointer; } *head[LEVELCAP]; /* array of pointers to struct */ The original parses as "struct element struct element *head[LEVELCAP];", which I think you'll agree is a bit hard on a non-AI parser. -- -Colin (uunet!microsoft!w-colinp) "Don't listen to me. I never do." - The Doctor