Could anyone please correct me with the following code too..I think like u said in the above code may be I am missing something.
#include <stdio.h>
int main (void)
{char *name[20];
char anu[20];
int i;
printf ("enter the strings\n");
for( i=0; i<20 ;i++)
{
scanf("%s",name);
printf("the string name declared as a pointer is %s\n", name);
}
scanf("%s",anu);
printf("the string declared as a string of charaters are %s\n",anu);
return (0);
}
Problem is the same ..code stops working and closes immediately. I couldnt figure out whats wrong..