When do you use "if ( a = b )"? (was Re: Funny mistake)

Dan Bernstein brnstnd at kramden.acf.nyu.edu
Tue Apr 2 02:28:29 AEST 1991


In article <18099 at crdgw1.crd.ge.com> volpe at camelback.crd.ge.com (Christopher R Volpe) writes:
> In article <20137 at alice.att.com>, ark at alice.att.com (Andrew Koenig) writes:
> [Deleted description of implementation that gave different results.]
> |>I believe that this behavior on the part of the compiler
> |>is entirely reasonable.
> Even if it's completely non-conforming?

I believe the original post contained a phrase like ``upon overflow.''
Nothing's guaranteed for ints upon overflow. I'm not sure if your CPU is
allowed to explode, but you're allowed to get weird results.

---Dan



More information about the Comp.lang.c mailing list