Coding Blues
Sunday, June 20, 2004
Sure everybody has been hit by this mistake before:
if(x = 5) printf("%d\n", x);
A different, but related gotcha hit me the other day:
x == getX();
Funny, isn't it?
On a related note:
if(p != NULL); printf("%d\n", p->x);