How to reverse a string in c++
How do you reverse a string in C++ using Strrev? strrev() is a pre-defined function in C++, defined inside the cstring. h header file. It is extensively applicable for reversing any C-string(character array). Further, it only requires the base address of the string as its argument and reverses the string accordingly. How do you reverse …