Order of Evaluation (plus ?'s)
Wm E Davidsen Jr
davidsen at crdos1.crd.ge.COM
Wed Nov 22 02:07:08 AEST 1989
In article <12570034 at hpclwjm.HP.COM> walter at hpclwjm.HP.COM (Walter Murray) writes:
| There are times when the parentheses aren't even needed. ANSI C guarantees
| that
| p = q + r + s;
| will behave exactly the same as
| p = (q + r) + s;
Could you quote sections on that? I don't seem to find the part which
says that expressions are evaluated left to right.
--
bill davidsen (davidsen at crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon
More information about the Comp.std.c
mailing list