This 'bug' in some C code cost me some sleepless nights:
#define ONE 1
#define TWO ONE + 1
#define THREE TWO + 1
What would you expect THREE minus TWO to equal? If you thought ONE, you would be wrong. THREE minus TWO equals THREE!
This 'bug' in some C code cost me some sleepless nights:
#define ONE 1
#define TWO ONE + 1
#define THREE TWO + 1
What would you expect THREE minus TWO to equal? If you thought ONE, you would be wrong. THREE minus TWO equals THREE!