Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!crdgw1!camelback!volpe From: volpe@camelback.crd.ge.com (Christopher R Volpe) Newsgroups: comp.lang.c Subject: Re: Assignment Ops and Side Effects Message-ID: <18355@crdgw1.crd.ge.com> Date: 9 Apr 91 12:28:52 GMT References: <1991Apr5.012413.24124@athena.mit.edu> <1991Apr5.234636.22610@csrd.uiuc.edu> <18324@crdgw1.crd.ge.com> <15765@smoke.brl.mil> Sender: news@crdgw1.crd.ge.com Reply-To: volpe@camelback.crd.ge.com (Christopher R Volpe) Lines: 19 In article <15765@smoke.brl.mil>, gwyn@smoke.brl.mil (Doug Gwyn) writes: |>In article <18324@crdgw1.crd.ge.com> volpe@camelback.crd.ge.com (Christopher R Volpe) writes: |>>The result of "c=1" in an expression context should be promoted to int. |> |>Not if it's the operand of sizeof; that would make sizeof rather useless. I don't think it would be useless at all. I could still do sizeof(c) and get the size of a char if I wanted. Can you point me to a reference to the Standard from which one can deduce that a NON-lvalue expression of type char should NOT be promoted to int when it is the operand of sizeof? thanks, Chris ================== Chris Volpe G.E. Corporate R&D volpecr@crd.ge.com