Assignment Ops and Side Effects
Christopher R Volpe
volpe at camelback.crd.ge.com
Tue Apr 9 22:28:52 AEST 1991
In article <15765 at smoke.brl.mil>, gwyn at smoke.brl.mil (Doug Gwyn) writes:
|>In article <18324 at crdgw1.crd.ge.com> volpe at 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 at crd.ge.com
More information about the Comp.lang.c
mailing list