title: Which is better option to use for dividing an integer number by 2?
body: <p>Which of the following techniques is the best option for dividing an integer by 2 and why?</p>
  
  <p>Technique 1:</p>
  
  <pre><code>x = x &gt;&gt; 1;
  </code></pre>
  
  <p>Technique 2:</p>
  
  <pre><code>x = x / 2;
  </code></pre>
  
  <p>Here <code>x</code> is an integer.</p>