Funny mistake

Larry Martell larry at st-andy.uucp
Wed Mar 13 22:50:34 AEST 1991


In article <wolfram.667581530 at cip-s05> wolfram at 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



More information about the Comp.lang.c mailing list