Javatpoint Logo
Javatpoint Logo

C++ String rbegin()

The rbegin() function stands for reverse beginning. This function is used to point to the last character of the string.


Consider a string str. Syntax would be:


This function does not contain any parameter.

Return value

It returns the reverse iterator pointing to the last character of the string.


Let's see the simple example.


ybboh ym si gnicnaD

In this example, we get the reverse string using rbegin() function.

Next TopicC++ Strings

Youtube For Videos Join Our Youtube Channel: Join Now

Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA