[Solved] i have been on this question for quaring the document for two days straight, and it is not working. don’t want to cheat, can you point the problem
When processing regular characters (final else clause) you read additional input instead of operating over text, i.e. instead of: scanf(“%c”, &document[parano][sentno][wordno][charno]); printf(“%c\n”, document[parano][sentno][wordno][charno]); charno++; you want to do: document[parano][sentno][wordno][charno++] = text[i]; By the time we hit text[i] == ‘ ‘ for the first time the value of ***document is “3\n1 2\n2\n” but you wanted it … Read more