condition convention

rogerh at bocklin.UUCP rogerh at bocklin.UUCP
Wed Apr 24 04:56:25 AEST 1985


To prevent silly mistakes like 
	if (j = 10)
I usually write
	if (10 == j)
By putting the constant first, I ensure that the compiler will catch the 
typo.



More information about the Comp.lang.c mailing list