title: array of pointers to strings
body: <p>in a C Programming its given that we can't get the values using scanf() function to array of pointers but </p>
  
  <pre><code>int main()
  {
  char *names[6];
  int loop;
  scanf("%s",names[1]);
  printftf("\n%s",names[1]);
  }
  </code></pre>
  
  <p>it is working ,when i give the input as program ,i think it is storing the input,but it prints the output correctly as the given input.after that it gives a segmentation fault...
  but when i do the same in a loop for getting 6 charecters</p>
  
  <pre><code>int main()
  {
   char *names[6];
   int loop;
   for(loop=0;loop&lt;6;loop++)
   scanf("%s",names[1]);
   for(loop=0;loop&lt;6;loop++)
   printf("\n%s",names[1]);
   }
  </code></pre>
  
  <p>its not working please give me the answer...</p>