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

Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials

B.Tech / MCA