javascript
Brief description  about Online courses   join in Online courses
View Shristy  Bhati 's Profile

About Shift Operators

Can anyone plz tell me that what is the syntax to use shift operators?
Asked by Shristy Bhati | Apr 13, 2013 |  Reply now
Replies (1)
View Luvita Burgess 's Profile
>> for "right-shift" and << for "left-shift"
5>>1 gives 2 i.e. 00000101 >> 1 => 00000010
5<<1 gives 10 i.e. 00000101 << 1 => 00001010
Apr 20, 2013