The wonders of C

Eric C. Brown brownc at utah-cs.UUCP
Mon Apr 1 08:06:19 AEST 1985


In article <325 at bu-cs.UUCP> root at bu-cs.UUCP (Barry Shein) writes:
>All this griping about accidently typing things like
>
>	if(c = NL)
Well, the Wizard C compiler for the IBM PC prints a warning message:

Warning:  Possibly incorrect assignment

with that line.  If you want it to shut up, then use 
	if ((c = NL) != 0)
or whatever.

All C compilers are not created equal:  some compilers check to see if what
you typed made any sense at all.

Eric C. Brown

Execute People, not Programs!



More information about the Comp.lang.c mailing list