title: EXC_BAD_ACCESS when reading file data into 2d array
body: <p>I am trying to load filedata into a 2d array, but when calling fread I am getting an EXC_BAD_ACCESS error.</p>
  
  <p>This is how I am attempting to read my file:</p>
  
  <pre><code>char data[21][23];
  FILE* file = fopen("1.txt", "r");
  fread(data, 1, sizeof(data), file); // EXC_BAD_ACCESS
  </code></pre>