Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!hp4nl!orcenl!bengsig From: bengsig@oracle.nl (Bjorn Engsig) Newsgroups: comp.lang.c Subject: Re: "abcdef"[3] == 3["abcdef"], but why? Message-ID: <519.nlhp3@oracle.nl> Date: 2 Oct 89 08:58:55 GMT References: <781@cc.helsinki.fi> <19883@mimsy.UUCP> Reply-To: bengsig@oracle.nl (Bjorn Engsig) Organization: ORACLE Europe, The Netherlands Lines: 7 Article <19883@mimsy.UUCP> by chris@mimsy.UUCP (Chris Torek) explains how the compiler could/does handle 3["abcde"]. This was very well done, except that 3["abcde"] actually evaluates to the char 'd' and not 'c'. I'm sure that Chris nows that C arrays start with index 0, right Chris :-) -- Bjorn Engsig, bengsig@oracle.nl, bengsig@oracle.com, mcvax!orcenl!bengsig