12,886,364 members (41,479 online)
Rate this:
See more:
What is the use of bitwise shift operators?Means where can we use in application?
Posted 13-Dec-12 19:22pm

Rate this:

## Solution 4

Sean Eron Anderson has a nice collection of Bit Twiddling Hacks[^] that illustrates their usefulness.

Regards
Espen Harlinn
Mika Wendelius 28-Dec-12 10:56am

Very useful!
Espen Harlinn 29-Dec-12 7:22am

Thank you, Mika :-D
Rate this:

## Solution 2

CPallini 20-Dec-12 17:41pm

5.
Rate this:

## Solution 1

there are two types of bitwise operator->
1:Left Shift Operator- <<
2:Right Shift Operator- >>

Left Shift Operator:-
It is used to shift at left side,but depends on the length u will specify to shift.
Example- My number is-8,I want to shift it 2 place at left
First calculate binary of 8,it will be-1000 when u apply left Shift
with the lengthh of 2,means u want to left shift 2 place,then it will left shift ur binary format like- 100000 and now ur o/p will be decimal of 100000 means (32)

Right Shif Operator:- Same 1000 will be,with right shift operator with length 2 will become-0010 means (2)
Rate this:

## Solution 3

take a look at this:
this is refrence.

Top Experts
Last 24hrsThis month
 OriginalGriff 300 CHill60 255 ppolymorphe 140 Maciej Los 140 Jochen Arndt 135
 OriginalGriff 4,297 CHill60 2,643 Karthik Bangalore 2,436 Jochen Arndt 2,248 ppolymorphe 1,985