I say it in a piece of C# code being used as an operation would be
I recommend checking out the C# documentation on Operators here;
The right-shift operator (>>) shifts its first operand right by the number of bits specified by its second operand.
or << are called bit-shift operators[/i]. This is because they take all the bits in the thing that’s before them and shift the bits to the left or right, respectively. For example, I could type
** **1 << 4;** **
which the compiler would interpret as 16. Why is this?
It’s helpful to think of numbers in their binary form. 1 in binary is 00000001. When you say 1 << 4, you’re saying to move every on-bit to the left four places, which means that your number in binary is now 00010000, which is 16 in decimal.
Typing >> does the same thing, but it moves all the bits to the right.16 >> 4 would evaluate as 1.