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
Social Sciences,
5 months ago
Math,
5 months ago
Computer Science,
10 months ago
English,
11 months ago
Biology,
11 months ago
Science,
11 months ago