Forums Register Login

quick question on Bitwise operations...

+Pie Number of slices to send: Send


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

thank you

-W.O.
+Pie Number of slices to send: Send
argument(=4):

000....00100


3:

000....00011

bitwise AND will give

000....00000 == 0
+Pie Number of slices to send: Send
 

Originally posted by Anton Uwe:
argument(=4):

000....00100


3:

000....00011

bitwise AND will give

000....00000 == 0



thanks
We noticed he had no friends. So we gave him this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 652 times.
Similar Threads
Passing the method's return as argument
Purpose for the Overloading
Generics
Fill in the blank
compareTo()
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 19, 2024 04:42:46.