#define OR ||
Ken Yap
ken at cs.rochester.edu
Thu Feb 1 19:55:31 AEST 1990
|This is the old slogan: UNIX users always *know* what they do; C users always
|*know* what they do. To my experience, practice and the discussions in
|comp.lang.c prove the contrary. So why not help them to avoid some common
|pitfalls by defining some adequate macros?
But macros introduce their own pitfalls too. I once wanted to strangle
the programmer who wrote
#define K *1000
so that one could write:
resistance = 10K;
You can imagine what happened when somebody declared the variable K.
More information about the Comp.lang.c
mailing list