What are Left Shift and Right Shift Operators (>> and <<) in C#?
Answers
Answered by
1
♦The operator '>>' is signed right shift operator.
The operator '>>' uses the sign bit (left most bit) to fill the trailing positions after shift.
♦If the number is negative, then 1 is used as a filler and if the number is positive, then 0 is used as a filler.
Answered by
1
♦ The operator '>>' is signed right shift operator.
The operator '>>' uses the sign bit (left most bit) to fill the trailing positions after shift.
♦ If the number is negative, then 1 is used as a filler and if the number is positive, then 0 is used as a filler.
Similar questions