Path: utzoo!mnetor!uunet!husc6!hao!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uiucdcsb!wsmith From: wsmith@uiucdcsb.cs.uiuc.edu Newsgroups: comp.lang.c Subject: Re: C sintax Message-ID: <165600034@uiucdcsb> Date: 5 Feb 88 15:18:00 GMT References: <501@m10ux.UUCP> Lines: 29 Nf-ID: #R:m10ux.UUCP:501:uiucdcsb:165600034:000:879 Nf-From: uiucdcsb.cs.uiuc.edu!wsmith Feb 5 09:18:00 1988 In <548@gtx.com>, al@gtx.com (Alan Filipski) writes: > I'll stick my neck out and say I don't think there ARE any syntactic > ambiguities in C. (there are, of course, the semantic ones resulting > from undefined order of evaluation). The potential ambiguities such > as the dangling else and those involving the comma operator are solved > by fiat. > > Are there any syntactic ambiguities K&R didn't resolve? > > ---------------------------------------------------------------------- > | Alan Filipski, GTX Corp, 2501 W. Dunlap, Phoenix, Arizona 85021, USA | > | {ihnp4,cbosgd,decvax,hplabs,amdahl}!sun!sunburn!gtx!al (602)870-1696 | > ---------------------------------------------------------------------- main() { int a,b; a = 0; b = 0; printf("%0d",a+++b); } Is this (a++)+b or a+(++b)? Bill Smith pur-ee!uiucdcs!wsmith wsmith@a.cs.uiuc.edu