Path: utzoo!yunexus!geac!syntron!jtsv16!uunet!mcvax!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: comp.lang.c Subject: Re: A curriosity in the C compiler... Message-ID: <1590@solo3.cs.vu.nl> Date: 28 Oct 88 16:32:35 GMT Article-I.D.: solo3.1590 References: <530@uvicctr.UUCP> Reply-To: maart@cs.vu.nl (Maarten Litmaath) Organization: VU Informatica, Amsterdam Lines: 15 In article <530@uvicctr.UUCP> sbanner1@uvicctr.UUCP (S. John Banner) writes: \/* \ This is a quick test of the C compiler, for implied bracketing... \This will determine if the expression "a = b == c" is parsed \as "(a = b) == c" (which is correct), or as "a = (b == c)" (which \is not). \*/ The `=' operator has lower priority than `==', so the SECOND parsing is correct. I thought this was VERY basic C knowledge... (In case you find the precedence strange: think of `a' as a boolean in which is stored if `b' and `c' are equal or not.) -- George Bush: |Maarten Litmaath @ VU Amsterdam: Capt. Slip of the Tongue |maart@cs.vu.nl, mcvax!botter!maart