C - Creation of an array of strings, help request -
C - Creation of an array of strings, help request - i'm having big problems while creating simple programme in c. i have next function: void createstrings (char *dictionary[], int *n) { int i; char word[20]; printf ("insert how many words use: "); scanf ("%d", &(*n)); // initialization (i = 0; < *n; i++) { dictionary[i] = '\0'; } // populating array words (i = 0; < *n; i++) { printf ("insert word in position %d: ", i); scanf("%s", word); dictionary[i] = word; } } in main read array of words populated using printf ("following words have been inserted:\n"); (i = 0; < n; i++) { printf ("dictionary[%d] = %s\n", i, dictionary[i]); } i'm pretty sure lastly cycle has been implemented well. when run programme , seek insert, example, 3 different words "one" "two" , "zero" next output: insert how many words use: 3 inse...