Yes. If you properly place your input in array of strings, then my reverse function will work fine.
In your second example you have shown reversing a single string, not an array of stings.
Reversing all kind of arrays follows the exact same logic.
> I inputed "10 9 8 7 6 5 4 3 2 1 0", and output will be:"0 1 2 3 4 5 6 7 8 9 10", not "0 1 2 3 4 5 6 7 8 9 01"
I assume that means: reverse the order of white-space separated tokens in a string, but retain the original order of characters within each token?
C++14, so Borland C++ Builder will choke on this.
But if it has something resembling std::string, this simple, brute-force, approach can still be used: