🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #980

Re: Re: Order of Evaluation (plus ?'s)

#980
From: Wm E Davidsen Jr
Date: Tue, 21 Nov 1989 15:07
15 lines
1065 bytes
In article <12570034@hpclwjm.HP.COM> walter@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@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
Technical Details
Message-ID: <1681@crdos1.crd.ge.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!crdgw1!crdos1!davidsen
References: <1989Nov18.232326.23711@utzoo.uucp> <12570034@hpclwjm.HP.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!crdgw1!crdos1!davidsen
From: davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr)
Newsgroups: comp.std.c
Subject: Re: Re: Order of Evaluation (plus ?'s)
Message-ID: <1681@crdos1.crd.ge.COM>
Date: 21 Nov 89 15:07:08 GMT
References: <1989Nov18.232326.23711@utzoo.uucp> <12570034@hpclwjm.HP.COM>
Reply-To: davidsen@crdos1.UUCP (bill davidsen)
Organization: GE Corp R&D Center, Schenectady NY
Lines: 15