1.

>> operator is used to denote_________(a) left shift(b) right shift(c) greater than(d) less thanThis question was posed to me during an online exam.The origin of the question is Complements in chapter Computer Arithmetic of Computer Fundamentals

Answer» CORRECT choice is (b) RIGHT shift

The best explanation: >> operator denotes the right shift in BINARY arithmetic.

E.g. If we SAY, >>110 by 2-bits, the value obtained will be 001.

Similarly, << denotes the right shift operator.


Discussion

No Comment Found

Related InterviewSolutions