Path: utzoo!news-server.csri.toronto.edu!rutgers!cbmvax!uunet!st-andy!larry From: larry@st-andy.uucp (Larry Martell) Newsgroups: comp.lang.c Subject: Re: Funny mistake Message-ID: <1991Mar13.125034.2825@st-andy.uucp> Date: 13 Mar 91 12:50:34 GMT References: Reply-To: uunet!st-andy!larry (Larry Martell) Distribution: comp Organization: RMJ Securities Corp. Lines: 20 In article wolfram@cip-s05.informatik.rwth-aachen.de (Wolfram Roesler) writes: >Hello out there, >I had a funny mistake the other day you might be interested in. It was an >obvious syntax error which resulted in legal C code. Funny too how many times >I read over it without seeing whats wrong. > >What I wanted to write was: > > if (fct(a,b,c)) > >but by mistake I wrote: > > if (fct(a,b),c) > It's not a syntax error - it is leagl C code. If it were a syntax error it wouldn't compile. -- Larry Martell uunet!st-andy!larry 212-668-9478