Average Word length | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
+ 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