Path: utzoo!attcan!uunet!lll-winken!csd4.milw.wisc.edu!bionet!ames!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: When is a cast not a cast? Message-ID: <10318@smoke.BRL.MIL> Date: 25 May 89 16:28:24 GMT References: <2747@buengc.BU.EDU> <6200006@ux1.cso.uiuc.edu> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 9 In article <6200006@ux1.cso.uiuc.edu> phil@ux1.cso.uiuc.edu writes: >What about: > q = NULL[i]; /* or even i[NULL] */ > q = q[1]; Please don't do these things even if your particular compiler happens to let you get away with it. There is no reason to expect these to work and on many C implementations they will fail. There are other, portable ways to accomplish such operations.