title: Converting 4 bytes to unsigned int
body: <p>If one has a character array such as </p>
  
  <pre><code>char bytes[256]  = "10000011011110110010001101000011";
  </code></pre>
  
  <p>I want to unsigned value of this which would be : <code>2205885251</code></p>
  
  <p>I'm trying to do something along these lines</p>
  
  <pre><code>unsigned int arr[256];
  for(int i = 0, k=0; i&lt;256; i++, k++)
  {
  arr[k] = bytes[i]|bytes[i+1]&lt;&lt;8|bytes[i+2]&lt;&lt;16|bytes[i+3]&lt;&lt;24;
  }
  </code></pre>
  
  <p>I am obtaining the wrong value: <code>3220856520</code>, can anyone point out what I am doing wrong?</p>