title: Size of multi dimensional array
body: <p>I was trying to get the size of a multidimensional array and wrote code in C as shown below.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  char b[3][4];
  
  int main(void){
      printf("Size of array b[3]=%d\n", sizeof(b[3]));  
      printf("Size of array b[2]=%d\n", sizeof(b[2]));
      printf("Size of array b[5]=%d\n", sizeof(b[5]));
  
      return 0;
  }
  </code></pre>
  
  <p>In all above three print statements, I am getting size equal to 4. Can someone explain how <code>sizeof</code> works in case of a multi-dimensional array? Why is the output the same in the third print?</p>