Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!unido!gmdzi!wittig From: wittig@gmdzi.UUCP (Georg Wittig) Newsgroups: comp.lang.c Subject: precedence of ?: Message-ID: <1265@gmdzi.UUCP> Date: 11 Sep 89 13:15:40 GMT Organization: GMD - Gesellschaft fuer Mathematik und Datenverarbeitung mbH Lines: 20 How should 0 ? 0 : i = 0 be interpreted? 1) as (0) ? (0) : (i=0) resulting in a (strange but) legal expression or 2) as (0 ? 0 : i) = 0 resulting in a syntax error ? Existing compilers don't agree on which alternative is the correct one. Thanks in advance, -- Georg Wittig email:wittig@gmdzi.uucp phone:(+49 2241) 14-2294 German National Research Laboratory for Computer Science (GMD) P.O. Box 1240 |"Freedom's just another word for noth- D-5205 St. Augustin 1 (West Germany) | ing left to lose" (K. Kristofferson)