Write a C++ program that reverses a string in-place using character pointer manipulation.
A single word string S.
Print reversed string.
1 <= Length <= 50
PointerReverse
esreveRetnioP
Swaps characters using start and end character pointers.
#include <iostream>
#include <string>
#include <algorithm>
void reverseString(char *str) {
// Write your code here using pointers
}
int main() {
std::string s;
if (std::cin >> s) {
std::vector<char> vec(s.begin(), s.end());
vec.push_back('