#include #include int main() { int in,i,j; char *arr[100],str[14]; scanf(\"%d\",&in); i=0; while(i
Try something like this in your loop.
while(i<in) { scanf("%s",str); arr[i]=malloc(sizeof(char) * strlen(str)); strcpy(arr[i],str); // printf("%s\n",arr[i]); i++; }