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


Average Word length

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


7/24/2021 3:54:37 PM

Kevin Calaña

2 Answers

New Answer


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


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