I am getting a core dump when I try scanning in the values. Please help.
Code:#include <stdio.h> #include <string.h> int main() { char *strings[50]; int amnt; printf("Enter the number of strings (0 to 50)\n> "); scanf("%d",&amnt); printf("Enter %d strings on separate lines\n",amnt); int i =0; for (i=0;i<amnt;i++) { scanf("\n%s",strings[i]); }