View Single Post
Old 04-08-2008, 12:12 PM   #16
Justin
Administrator
 
Justin's Avatar
 
Join Date: Jan 2005
Location: NYC
Posts: 15,721
Default

Quote:
(var & 4 == 4) // always evaluates to true
Hmm? wouldn't that be the same as (var&(4==4)) which would be (var&1) ?

Ahh, C and its token-hungriness.

Which makes me think of this ol' question:

Code:
int a=1,b=3;
int c=a+++b;
what happens? (and why?)

-Justin

Last edited by Justin; 04-08-2008 at 12:14 PM.
Justin is offline   Reply With Quote