Reverse string without using any temporary variable | Reversing a string using reverse ( ) ; Reverse str [ beign . . end ]
#include <bits/stdc++.h> NEW_LINE using namespace std ; int main ( ) { string str = " geeksforgeeks " ; reverse ( str . begin ( ) , str . end ( ) ) ; cout << str ; return 0 ; }