title: Function Prototypes with multi-dimensional arrays as a parameter
body: <p>Brand new to C, I come from a Java background.</p>
  
  <p>I am having an issue where I can't compile because the compiler wants to know at compile time the size of my array. For example, I want to print my array to the console. It won't allow me to declare a function prototype as such:</p>
  
  <pre><code>void printRoom(char[][], int, int); //not allowed 
  </code></pre>
  
  <p>What am I supposed to do instead? Is there not a way around this? Online resources that I have found seem to indicate that I MUST know the  dimensions if I want to use a function prototype. It appears that it also requires that the function header have the size of the array as well.</p>
  
  <pre><code>void printRoom(char room[][], int height, int width){ // not allowed, missing array bounds
  </code></pre>
  
  <p>Would a valid solution to this problem just be to say the array is of size 1000*1000 (the maximum array size I can expect)? That seems sloppy to me but I'm pretty sure it would work as long as I stayed within the bounds of what the array size is actually supposed to be.</p>
  
  <p>I am NOT interested in pointers and malloc at this time. </p>