title: Error: return makes pointer from integer
body: <p>I was trying to make a function which will scan strings and create one dimension array of strings. </p>
  
  <p>While compiling I have got this error:</p>
  
  <blockquote>
    <p>return makes pointer from integer without a cast</p>
  </blockquote>
  
  <p>The code of this function is here:</p>
  
  <pre><code>char **insert_strings(int *n) {
      char **strings;
      char *string;
      strings=(char **)malloc((*n)*sizeof(char*));
      for(int i=0;i&lt;(*n);i++)
          strings[i]=(char*)malloc(30*sizeof(char));
      for(int i=0;i&lt;(*n);i++) {
          scanf("%s",string);
          strcpy(strings[i],string);
      }
      return **strings;
  }
  </code></pre>