End of line
Can someone please help me understand the below question. what should be the correct approach? I dont want the code. i just want to undertsand the correct motive. want to write the code myself. sir John Wells can you help me with that? Thanks a lot. A line of English text will be given, where words are separated by one of the following symbols: ' ', '\t', '.', ',' and ';' Each word may be separated from the next and the previous by one or more of the following symbols. You have to count the number of words in the sentence. Note that to read the input, you have to read until the EOF symbol is read, as in the following example. int main() { int c; c = getchar(); while ( c != EOF ) { c = getchar(); } return 0; } Note: it is possible to solve this question without arrays, so the maximum length of the line is not important. Input ----- A line of English text with words separated from one another by one or more occurrences of the symbols