I have a small problem with char arrays.
I made a function that reverses a char array, which is pretty easy but now I want to also reverse the words.
So if i have char word = "hello world"
a call to PrintStringReverse(word) would give me:
and a call to PrintWordReverse would give me:Code:
void PrintStringReverse(char s)
int N = strlen(s);
cout << s << endl;
How can I go about this using the functions built into <cstring> only, no vector or <string> suggestions please.