In C++, I need to:
Despite this looking quite homeworky, may I suggest:
void reverse(char word[]) { int len=strlen(word); char temp; for (int i=0;i
or, better yet, the classic XOR implementation:
void reverse(char word[]) { int len=strlen(word); for (int i=0;i