Path: utzoo!attcan!uunet!wuarchive!cs.utexas.edu!usc!samsung!uakari.primate.wisc.edu!pikes!aspen.craycos.com!pmk From: pmk@craycos.com (Peter Klausler) Newsgroups: comp.lang.c Subject: Re: Casting pointers Message-ID: <1990Jul19.155023.6915@craycos.com> Date: 19 Jul 90 15:50:23 GMT Organization: Cray Computer Corporation Lines: 15 volpe@underdog.crd.ge.com (Christopher R Volpe) writes: > In article <1614@ghost.stsci.edu>, davids@stsci.EDU (David Silberberg) writes: > |>If the last line above were replaced by > |> > |> ptr = (char *)ptr + num_chars; > |> > |>it would perform as desired. Does casting work on an lvalue? > > I'm not sure if casting on an l-value is specified anywhere. Casts NEVER produce lvalues. Never ever ever ever ever. Read section 3.3.4 of the standard.