0
Explain me, why its not work (Extra-Terrestrials) (solved)
2 ответов
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"