×

# bitwise operators

 0 if(b&1)  do these operators work only for numbers less than 16 bits? if no, then how it will perform these operations? asked 01 Feb '14, 15:23 336●2●11●19 accept rate: 9%

 1 No. AND operator works on integers as well. How? The same way it used to do. What is your query exactly? If you want a comparison between arithmetic and bitwise operations in performance aspects, then I would say it hardly matters. Because ultimately, the compiler optimizes your code(operations) so irrespective of which way you used, you will hardly see any performance difference. See here for some good examples for what can be achieved. answered 01 Feb '14, 16:04 8.7k●19●48●98 accept rate: 9%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×184
×19

question asked: 01 Feb '14, 15:23

question was seen: 3,028 times

last updated: 01 Feb '14, 16:04