Sneaker's Stub – The Grey Stuff!

Program to find number of words,vowels,spaces,special chars and consonants in sentence using C

C language provides many libraries to handle strings. The libraries that we are going to be using are ctype and string. If you are working in C and you require to manipulate a string, ctype and string header files are your friends! Make use of them.

Explanation

The functions of ctype.h used in the program are:

isalpha() – Checks whether the reading character is an alphabet

isspace() – Check for white space

ispunc() – Checks whether the character is a punctuation [character that is not an alphabet]

The functions of string.h header used in code:

strlen() – Checks the length of the string and return a number

gets() – helps in input of a string from the console. It can take any number of strings [ Will not run in linux gcc, Deprecated due to security reasons. It causes buffer overflow! ]