• Post Reply Bookmark Topic Watch Topic
  • New Topic

quick question on Bitwise operations...  RSS feed

 
Wolfgang Obi
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


can someone please explain to me why i get true as a return value here?

thank you

-W.O.
 
Anton Uwe
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
argument(=4):

000....00100


3:

000....00011

bitwise AND will give

000....00000 == 0
 
Wolfgang Obi
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Anton Uwe:
argument(=4):

000....00100


3:

000....00011

bitwise AND will give

000....00000 == 0


thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!