title: my function inside of c program does not work
body: <p>I am trying to create 2 separate function in my c program that 
  First program reads the arrays <em>( names of photographers and their points)</em> and the second one displays all names and points. <em>(With printf command)</em> </p>
  
  <p>But the program doesn't run my second function.
  What is wrong with my function? </p>
  
  <p>Thanks in advance </p>
  
  <pre><code>    #include &lt;stdio.h&gt;
  `#include &lt;string.h&gt;`
  
      void readdata(char name[15][15],float points[15]);
      void printdata(char name[15][15],float points[15]);
  
  int main () 
  {
      char names[15][15];
      float points[15];
  
  
  
  
          readdata(names,points);
          printdata(names,points);
  
  
  
      return 0;
  
  }
  
      void readdata(char name[15][15],float points[15])   
      {
          int i;
          int n;
  
          printf("Please enter the number of photographers ( The value should be less than 15)\n");
          scanf("%d",&amp;n);
          while(n&lt;0 || n&gt;15)  
          {
              printf("PLEASE ADD NUMBER BETWEEN 1 AND 15\n");
              scanf("%d",&amp;n);
          }
  
          for(i=0; i&lt;n;i++)   
          {
              scanf("%s%f", name[i],&amp;points[i]);
  
          }
      }
  
  
      void printdata(char name[15][15],float points[15])
          {
  
              int i;
              int n;
              for(i=0; i&lt;n;i++) 
              {
                  printf("%s\t", name[i]);
                  printf("%.f\n", points[i]);
              }
          }
  </code></pre>