title: Make a string have the number of lines equals to a value of a variable
body: <p>I have a char variable (<code>si</code>) as a string if I'm explaining correctly.
  Since it is basically an array I wanted to make it have the same lines as a value of a variable (<code>n</code>).</p>
  
  <p>Here is the code:</p>
  
  <pre><code>int n, i, j;
  char si['n'][30];
  
  printf("Introduce the number of teams in the championship\n");
  scanf("%d", &amp;n);
  
  for (j = 1; j &lt;=n; j++) {
      printf("Introduce the number of the team and the name separated by a space\n");
      scanf("%d %s", &amp;i, &amp;si[n]);
  }
  
  for (j = 1; j &lt;= n; j++) {
      printf("%s\n", si[n]);
  }
  </code></pre>
  
  <p>(The <code>si['n']</code> is probably wrong it was tests that I was doing.)</p>