Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!ux1.cso.uiuc.edu!csrd.uiuc.edu!sp64.csrd.uiuc.edu!bliss From: bliss@sp64.csrd.uiuc.edu (Brian Bliss) Newsgroups: comp.lang.c Subject: Re: Assignment Ops and Side Effects Message-ID: <1991Apr5.234636.22610@csrd.uiuc.edu> Date: 5 Apr 91 23:46:36 GMT References: <1991Apr3.173046.2367@mccc.edu> <1991Apr4.202314.961@csrd.uiuc.edu> <11805@dog.ee.lbl.gov> <1991Apr5.012413.24124@athena.mit.edu> Sender: news@csrd.uiuc.edu (news) Reply-To: bliss@sp64.csrd.uiuc.edu (Brian Bliss) Organization: Center for Supercomputing Research and Development Lines: 9 > For the compiler that thinks that sizeof(c += 1) is sizeof(int), > I wonder what it thinks about sizeof(c = 1) or sizeof(c = 1.0) ? (c is a char) The compiler is Sun 4.0's cc, and indeed, it returns 1 for both cases. So indeed it is the assignment that is responsible for coercing the result back to char type. bb