Funny mistake

Doug Gwyn gwyn at smoke.brl.mil
Sat Mar 16 05:30:09 AEST 1991


In article <8148 at rsiatl.Dixie.Com> stan at Dixie.Com (Stan Brown) writes:
>>"if (a = b)" instead of "if (a == b)". 
>... I have yet to see a UNIX compiler complain about it

That's good, because it is valid C and the compiler cannot know whether
or not it reflects the programmer's intentions.



More information about the Comp.lang.c mailing list