Which of the following techniques is the best option for dividing an integer by 2 and why?
Technique 1:
x = x >> 1;
Technique
Just use divide (/), presuming it is clearer. The compiler will optimize accordingly.
/