title: How does printf work?
body: <p>I looked over but couldn't find a decent answer.</p>
  
  <p>I was wondering how printf works in case like this:</p>
  
  <pre><code>char arr[2] = {5,6};
  
  printf ("%d%d",arr[0],arr[1]);
  </code></pre>
  
  <p>I was thinking that printf just walks through the format and when it encouter %d for example it reads 4 bytes from the it's current position... however that's gotta be misconcepition cause that above works perfectly.</p>
  
  <p>so, where am I wrong ?</p>