title: Passing Dynamically Sized Arrays (a parameter is not allowed)
body: <p>I have a function signature that uses a parameter value to dynamically allocate an array of the correct size</p>
  
  <pre><code>void print(int rows, int cols, char arr[rows][cols])
  </code></pre>
  
  <p>I am currently working in the Visual Studio IDE. It seems to have a problem with not knowing what the parameter is and therefore not knowing how much memory to allocate. It is a syntax error and won't even compile. Is there a way to ignore the error/compiler warning. I previously had a scanf compiler warning but disabled it following this <a href="https://stackoverflow.com/questions/30577519/error-c4996-scanf-this-function-or-variable-may-be-unsafe-in-c-programming">link</a>. Can I define something like</p>
  
  <pre><code>    #define _CRT_SECURE_NO_DEPRECATE
  </code></pre>
  
  <p>for this problem? Thanks</p>