Q:

Meaning of >> in C#

Maybe it's a silly question but I cannot search any result in google/stackoverflow by keying the code. 
My question is that what's the meaning of ">>" in code "i = x >> 1;" 
Thank you for your help.

A:

'>>' is a binary shift operator. It shifts the bits of it's left operand (x in your example) to the right by the number specified in it's right operand (1 in your example).
Example:
Say the value of x is 16. This, in binary, is 10000.
x = 16; //     x = 0b10000 = 16

So "x >> 1" has the value 1000 in binary, or 8 in decimal.
i = x >> 1; // i = 0b01000 =  8

Searching for symbols on google and stack overflow is difficult without text around the symbols. Try using http://symbolhound.com/ when searching for symbols in the future.

