Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!mcsun!unido!rwthinf!cip-s05!wolfram From: wolfram@cip-s05.informatik.rwth-aachen.de (Wolfram Roesler) Newsgroups: comp.lang.c Subject: Funny mistake Message-ID: Date: 26 Feb 91 15:18:50 GMT Sender: news@rwthinf.UUCP Distribution: comp Lines: 17 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) Easy to see here, but hard to discover when it's not a b c but some speaking variable names like NoOfLines or ErrorFlag or FilePtr or something. Perhaps that's why many people refuse to use speaking variable names... :)