0
operations done by >> or << operators
what is the use of the above operator and where is it used
2 Réponses
+ 2
these are shift operators used in binary calculations
ex:
14 <<2
14 in binary : 00001110
shit 2times from left : 00111000
ans: 56
<< is left shift
>> is right shift
these are rarely use in realtime
but if u have a situation where u need to decide between 2 high order and low order bytes then these are very usefull
0
it's a shift operator