0

c++ program

how to reverse a string???? most importantly, what header files do I need for inputting the string?

12th Feb 2017, 1:45 PM
potato
potato - avatar
2 Respuestas
+ 1
Write a function for it. Loop through the characters backwards and store every character in another array.
12th Feb 2017, 1:48 PM
Unforgiven
Unforgiven - avatar
0
Use the function - strrev(string name). It needs the header file <string.h>
12th Feb 2017, 3:54 PM
Yash Maurya
Yash Maurya - avatar