Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!apple!motcsd!motsj1!mcdchg!att!cbnewsh!rkl From: rkl@cbnewsh.ATT.COM (kevin.laux) Newsgroups: comp.lang.c Subject: Re: Very elementary question concerning indirection Keywords: elementary question, indirection Message-ID: <8222@cbnewsh.ATT.COM> Date: 15 Feb 90 16:54:26 GMT References: <7998@hubcap.clemson.edu> Organization: AT&T Bell Laboratories Lines: 21 In article <7998@hubcap.clemson.edu>, kaires@hubcap.clemson.edu (Robert G Kaires) writes: | | main() | { | char *pointer; | char string[300]; | gets(string); | printf( "%c\n",*(strchr(string,40)) ); <---- line in question | pointer = strchr(string,40); | printf("%c\n",*pointer); | } | | "partest.c", line 6: illegal indirection | "partest.c", line 7: warning: illegal combination of pointer and | integer, op = | Did you include the header file