title: How do I correctly set up, access, and free a multidimensional array in C?
body: <p>I have seen dozens of questions about “what’s wrong with my code” regarding multidimensional arrays in C. For some reason people can’t seem to wrap their head around what is happening here, so I decided to answer this question as a reference to others:</p>
  
  <p>How do I correctly set up, access, and free a multidimensional array in C?</p>
  
  <p>If others have helpful advice, please feel free to post along!</p>