title: How do sizeof(arr) / sizeof(arr[0]) work?
body: <p>When looking for a size of an array in a for loop I've seen people write</p>
  
  <pre><code>int arr[10];
  for(int i = 0; i &lt; sizeof(arr) / sizeof(arr[0]); i++){}
  </code></pre>
  
  <p>How is <code>sizeof(arr) / sizeof(arr[0])</code> the length of the array? How does it technically work?</p>