how to reverse a string in c++ using inbuilt function

how to reverse a string in c++ using inbuilt function

1 Like

string s;

cin>>s;

reverse(s.begin(),s.end())

cout<<s;

This is the easiest way i think …
You could just google about it also…

Please tend to google such type of things.