title: Passing Char Array into a function in C
body: <p>I can not access the array from main in the function. How do i correct this ? Whenever I compile it say the argument 1 is of type **char and the argument 1 passed to fre in incompatible. Do i need to change any syntaxes ?</p>
  
  <pre><code>void fre(char *asd);
  
  int main()
  
   {
     char *names[7]={"Jayan Tennakoon","John Long","Robert Lang"};
  
     int i;
  
     for(i=0;i&lt;7;i++)
       {
  
          printf("%s\n",names[i]);
  
       }
  
       fre(names);
  
       return 0;
  
   }
  
   void fre(char *asd)
     {
       int i;
  
       for(i=0;i&lt;7;i++)
         {
  
            printf("%s\n",asd[i]);
  
         }
   }
  </code></pre>