0
c++ program
how to reverse a string???? most importantly, what header files do I need for inputting the string?
2 Answers
+ 1
Write a function for it. Loop through the characters backwards and store every character in another array.
0
Use the function - strrev(string name). It needs the header file <string.h>