difference between c++; and ++c;

Stan Brown browns at iccgcc.decnet.ab.com
Sat Apr 13 03:21:14 AEST 1991


In article <4496 at gmdzi.gmd.de>, wittig at gmdzi.gmd.de (Georg Wittig) writes:
> So, is
> 
> 	``c++''		always equivalent to	``(++c - 1)''

Not necessarily.  You'd have to take overflow into account, and it
might depend on whether c is signed or unsigned.

Stan Brown, Oak Road Systems, Cleveland, Ohio, USA    +1 216 371 0043
                   email (until 91/4/30): browns at iccgcc.decnet.ab.com
My opinions are mine:  I don't speak for any other person or company.



More information about the Comp.lang.c mailing list