if this legal code?
Ron Carter
wreck at fmsrl7.UUCP
Thu Jun 27 23:37:52 AEST 1991
In article <1991Jun25.235904.23103 at netcom.COM> aed at netcom.COM (Andrew Davidson) writes:
>if (! ((tt = testEntry.code - testCode) || (tt = testEntry.leg -
>testLeg)))
>
>does the language guarentee that if testEntry.code -testCode is not
>equal to 0, that the second assignment (tt = testEntry.leg - testLeg)
>will not be executed?
Yes. Short-circuiting of logical operations is guaranteed by C.
f
o
d
d
e
r
More information about the Comp.lang.c
mailing list