Which of the following techniques is the best option for dividing an integer by 2 and why?
Technique 1:
x = x >> 1;
Technique
x = x / 2; is the suitable code to use.. but an operation depend on your own program of how the output you wanted to produce.