title: Trying to write a function that get names from the user
body: <p>I tried to write a function, that get a number of candidates betwen 10 to 60,000,
  and gets a name for each candidate...
  This is what I wrote:</p>
  
  <pre><code>/********** Headers **********/
  #include &lt;stdio.h&gt;
  #include &lt;stdlib.h&gt;
  #include &lt;string.h&gt;
  #include &lt;conio.h&gt;
  /********** Consts **********/
  const number_candidates;
  
  /********** Functions **********/
  void get_candidates(char *arr[256][256])
  {
      int counter = 1, i = 0, j =0;
      int temp = 0;
  
      printf ("Please enter the number of candidates: \n");
      scanf ("%d", &amp;temp);
      while (temp &lt; 10 &amp;&amp; temp &gt; 60000)
      {
          printf ("Please enter the number of candidates: \n");
          scanf ("%d", temp);
      }
      const number_candidates = temp;
      while (counter &lt; number_candidates + 1)
      {
          printf ("Please enter the %d name: \n", counter);
          fgets (arr, 256, stdin);
          counter++;
      }
  }
  
  int main(int argc, char *argv[])
  {
      int i = 0;
      char can_names[256][256];
  
      get_candidates(&amp;can_names);
  
      system("PAUSE");
      return 0;
  }
  </code></pre>
  
  <p>There is an error in getting the names into the arr...</p>