precedence of ?:
Georg Wittig
wittig at gmdzi.UUCP
Mon Sep 11 23:15:40 AEST 1989
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 at 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)
More information about the Comp.lang.c
mailing list