title: Why is there an asterisk after a function type declaration in C?
body: <p>My question is in the title and is more of a syntax related question. Does anyone know what the <code>*</code> is doing in the function below? See here:</p>
  
  <pre><code>int* reat(int *n)
  {
       int i, *array;
       do 
       { 
           printf("n="); scanf("%d", n);
       } while (*n &lt; 1);
       array = (int *)malloc(*n * sizeof(int));
       for (i = 0; i &lt; *n; i++)
       { 
          printf("%d. broj: ", i + 1);
          scanf("%d", array + i); 
       }
       return array;
  }
  </code></pre>