0
How to get the reverse of an input in C++ ? [Solved]
For example :- "name" is a string and I want to get the reverse of it as "eman" .
2 Respostas
+ 5
Use search bar this type of codes available here,
https://code.sololearn.com/cLI6XKV2914t/?ref=app
https://code.sololearn.com/cQpCJz2MTH83/?ref=app
+ 1
std::reverse or use a loop to traverse from end to begin