0

Explain me, why its not work (Extra-Terrestrials) (solved)

https://code.sololearn.com/cTIzuKI0T55M/?ref=app

8th Jan 2021, 11:30 PM
Evgeniy Belov
Evgeniy Belov - avatar
2 Respuestas
0
Its not work, because the last char is '\0'. The test did not count the result of my code because when accessing the last character in the string, we have \0, which is output first, but is not displayed. Thus, if we enter "hello", then we have "hello\0", and the output has "\0olleh"
8th Jan 2021, 11:32 PM
Evgeniy Belov
Evgeniy Belov - avatar