What is meant by (s+e)>>1;

Bhaiya said that we can do right shift one to s+e instead of doing (s+e)/2, how do >>1 works?

hello @namanmittal0007
right shifting is equivalent to division with power of two.
for example
a>>i is same as a/ 2^i
(s+e)>>1 is same as (s+e)/2^1 = (s+e)/2

then, do a<<i means a*2^i?

yeah correct . … … … … …

is there something for + and - also?

no … …

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.