Word analyzer in c programming | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Word analyzer in c programming

I was given an assignment to ask the user for a word with 25 or fewer characters (a char string), I was then supposed to determine if the input was a word depending on the first character. If it started with a number or punctuation/special character then it wasn’t a word and if the word started with ‘#’ the loop would end. To do this I put if, else if, & else statements paired with ‘isdigit’, ‘ispunct’, etc. inside a do while loop. But how would I analyze every character to determine if it’s a word?

6th Aug 2020, 4:20 AM
Olivia
1 Answer
0
isalpha
6th Aug 2020, 4:40 AM
Slick
Slick - avatar