C Program to Count Number of Words, Lines and Characters in String

preview_player
Показать описание
Program to Count Number of Words, Lines and Characters in String

C program to count the number of words, lines and characters in a text
Рекомендации по теме
Комментарии
Автор

Sir can we use printf replced by puts in the first line???

ExploreNewThingsWithJay
Автор

Try it in text file, write in it and then count from file after retrieval!

Sndbest
Автор

i have a question
suppose my string is "atal bihari bajpayee" and i want to calculate the number of vowels in the string and in addition to that
i want to read how many times a particular vowel is repeated in the like in my string the vowel 'a' is repeated for 5 times, vowel 'e' is repeated for 2 times, vowel 'i' is repeated for 2 times vowel 'o' for 0 times and vowel 'u' for 0
please reply me as soon as you can

abhinavchaudhary
Автор

Suppose the string is:

This is the program.

Then after compiling the above code, the number of words = 3

Because in above input starts from itself a word and not from a now what to

tejasdhule
Автор

the program fail to count number word if user put more space between two words

shabazhodophile