title: How can I make a 2-D array in C using user inputs
body: <p>I tried to make a 2-D array given the numbers of rows and columns as the user input.</p>
  <pre><code>int main(void)
  {
     int nx, ny;
     scanf_s(&quot;%d&quot;, &amp;nx);
     scanf_s(&quot;%d&quot;, &amp;ny);
     int array[nx][ny];
     return 0;
  }
  </code></pre>
  <p>But VSC is telling me that I must have constants in the parenthesis [].</p>
  <p>Is there any way I can convert 'nx' and 'ny' as constant?</p>
  <p>Or is there any other way to declare 2-D or N-D arrays without converting their dtype?</p>