I mean that paragraphs are counted when pressing enter. And after finding total no of paragraphs, I have tried to use strtok after reading its use[URL="http://http://www.cplusplus.com/reference/clibrary/cstring/strtok.html"]
Originally Posted by Salem
But now, there is some problem here. Would someone tell me how to solve it? I would be thankful for your help.
printf("Total number of paragraph(s):%d\n",count_p+1);
printf("Total number of words in paragraph %d: %d\n",count_p+1,count_pw[count_p+1]);