Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!ncar!tank!uxc!uxc.cso.uiuc.edu!a.cs.uiuc.edu!m.cs.uiuc.edu!kenny From: kenny@m.cs.uiuc.edu Newsgroups: comp.lang.c Subject: Re: What does Z["ack"] = 5 mean? Message-ID: <4700019@m.cs.uiuc.edu> Date: 7 Oct 88 18:45:00 GMT References: <14999@agate.BERKELEY.EDU> Lines: 13 Nf-ID: #R:agate.BERKELEY.EDU:14999:m.cs.uiuc.edu:4700019:000:535 Nf-From: m.cs.uiuc.edu!kenny Oct 7 13:45:00 1988 /* Written 2:54 pm Oct 5, 1988 by merlyn@intelob.intel.com in m.cs.uiuc.edu:comp.lang.c */ Now, you may not like the idea of the subscript transposed with the array name, but it is legal C. /* End of text from m.cs.uiuc.edu:comp.lang.c */ Since K&R are somewhat unclear on the point, some compiler implementors, notably Encore, have been lax about implementing integer[pointer] and integer +- pointer. It is unwise to depend on either form's working in portable code; better to use pointer[integer] and pointer +- integer. Kevin