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.

Syntax

Consider a string str. Syntax would be:

Parameter

This function does not contain any parameter.

Return value

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

Example

Let's see the simple example.

Output:

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

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA