You are not logged in. Please login at to post your questions!


bitwise operators


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

rudra_sarraf's gravatar image

accept rate: 9%

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

bugkiller's gravatar image

accept rate: 9%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • 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:


question asked: 01 Feb '14, 15:23

question was seen: 3,028 times

last updated: 01 Feb '14, 16:04