title: How to convert binary array to a decimal number in C
body: <p>I am facing difficulty in converting a binary array to a decimal number:</p>
  
  <pre><code>bin[8] = {10,00,00,10};
  </code></pre>
  
  <p>I want the equivalent of this array element as a decimal number, i.e. <code>130</code>.</p>