I was watching a lecture on the use of operators but I did not understand the use of shift operator during that. Please elaborate what exactly is the use of it?
Shift operator use
hello @priyam04
left shift by 1 is equivalent to multiplying number by 2.
right shift by 1 is equivalent to dividing number by 2.
we use them for bit manipulation. all its use cases are covered in bitmanipulation playlist of ur course
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.