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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


B.Tech / MCA