Код: Выделить всё
[this is my test string] ==> [string test my is this]
Код: Выделить всё
[this is my test string] - input string
[gnirts tset ym si siht] - reverse the whole string - in-place
[string test my is this] - reverse the words of the string - in-place
[string test my is this] - string-2 with spaces rearranged
Подробнее здесь: https://stackoverflow.com/questions/378 ... ersal-in-c
Мобильная версия