Symbols code coach | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 8

Symbols code coach

What is wrong with this code It says that test case 4 failed why ?? https://code.sololearn.com/cbX9OslrVDmO/?ref=app

16th Aug 2020, 12:29 PM
Ahmed Mahmoud
Ahmed Mahmoud - avatar
5 Respostas
0
Use fgets(str1,100,stdin); instead of gets() ; Or add this at end to not print extra charecter... str2[j]='\0'; Or pls post your updated code... If any case fail still...
16th Aug 2020, 1:41 PM
Jayakrishna šŸ‡®šŸ‡³
+ 3
Even when I am not including these little symbols also say that test case four failed
16th Aug 2020, 1:06 PM
Ahmed Mahmoud
Ahmed Mahmoud - avatar
+ 2
thanks a lot šŸŒŗā¤ļø the problem was with the str2 i didnā€™t end it as u siad so thanks šŸ‘šŸ‘šŸŒŗ
16th Aug 2020, 2:07 PM
Ahmed Mahmoud
Ahmed Mahmoud - avatar
+ 1
You including the symbols also.. Why? It should only contian alphabets, numbers, and space.
16th Aug 2020, 1:00 PM
Jayakrishna šŸ‡®šŸ‡³
0
You're welcome..
16th Aug 2020, 2:12 PM
Jayakrishna šŸ‡®šŸ‡³