Average Word length | Sololearn: Learn to code for FREE!

0

Average Word length

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

c

7/24/2021 3:54:37 PM

Kevin Calaña

2 Answers

New Answer

+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

+1

Ok understood, thanks for the help I never used the ctype header but looks very usefull