C history question
Barry Margolin
barmar at kulla
Fri Sep 29 02:11:09 AEST 1989
In article <596 at crdos1.crd.ge.COM> davidsen at crdos1.UUCP (bill davidsen) writes:
>In article <29557 at news.Think.COM> barmar at think.COM (Barry Margolin) writes:
>| allok = allok && a[i++] > b[j++]
>|then the side effects on i and j would be different from
>| allok &= a[i++] > b[j++]
> What are you saying here? The & and && operators work diferently.
It started with someone asking why there are no &&= or ||= operators
in C. Someone suggested that &= could be used whenever you would have
wanted to use &&=. My posting shows that they are different,
precisely because & and && are different.
Barry Margolin, Thinking Machines Corp.
barmar at think.com
{uunet,harvard}!think!barmar
More information about the Comp.lang.c
mailing list