0

Average Word length

My last case failed, someone knows why? https://code.sololearn.com/cW0V4R4BCfN7/?ref=app

24th Jul 2021, 3:54 PM
Kevin
Kevin - avatar
2 ответов
+ 2
Kevin Calaña There maybe other characters than alphabets and numbers so you have to get length of string without those characters. Also use strlen instead of sizeof Try this https://code.sololearn.com/cGwhdZZ11Vlu/?ref=app
24th Jul 2021, 3:57 PM
A͢J
A͢J - avatar
+ 1
Ok understood, thanks for the help I never used the ctype header but looks very usefull
24th Jul 2021, 4:46 PM
Kevin
Kevin - avatar