12,299,109 members (50,255 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
 ppolymorphe 310 OriginalGriff 308 CHill60 176 George Jonsson 160 Karthik Bangalore 115
 OriginalGriff 9,733 ppolymorphe 5,826 CHill60 5,452 Karthik Bangalore 5,056 Richard MacCutchan 4,894