title: How to create a big matrix like with 1000 rows & columns in c?
body: <p>I wrote a simple code to create a Directed Graph using adjacency matrix with randomly generated numbers that are the vertices of the graph. But my task is to make a bigger matrix with 1000 rows and columns. My code cannot make more than a 50*50 matrix. How can I make a big matrix?</p>
  
  <p>This is the code that I have created.</p>
  
  <pre><code>int arr[1001][1001];
  int main()
  {
  int i,a,b,j,k,m,n;
  scanf("%d%d",&amp;a,&amp;b);
  for(i=0;i&lt;b;i++)
  {
      m=rand()%100;
      n=rand()%100;
      arr[m-1][n-1]=1;
  }
  for(j=0;j&lt;a;j++)
  {
      for(k=0;k&lt;a;k++)
      {
          printf("%d ",arr[j][k]);
      }
      printf("\n");
  }
  </code></pre>
  
  <p>The compiler doesn't give any output.</p>