Path: utzoo!mnetor!uunet!mcvax!ukc!eagle!icdoc!cam-cl!am From: am@cl.cam.ac.uk (Alan Mycroft) Newsgroups: comp.lang.c Subject: x++ != (x+=1)-1 Message-ID: <1138@jenny.cl.cam.ac.uk> Date: 1 Mar 88 10:59:40 GMT References: <51200001@upba> <4030@megaron.arizona.edu> Reply-To: am@cl.cam.ac.uk (Alan Mycroft) Organization: U of Cambridge Comp Lab, UK Lines: 7 In article <4030@megaron.arizona.edu> mike@arizona.edu (Mike Coffin) writes: >A simple way to understand the postincrement operator is to note that >(x++) is equivalent to ((x += 1) - 1). Not if x is a floating type. Probably also not if x is a signed integral type and has a 'sticky' overflow value (but then the program is undefined anyway).