Javatpoint Logo
Javatpoint Logo

C++ String crbegin()

The crbegin() function stands for 'reverse beginning'. This function references to the last character of the string.


Consider a string str. Syntax would be:


This function does not contain any parameter.

Return value

This function returns the constant iterator pointing to the last character of the string.

Example 1

Let's see the simple example of crbegin() function:


rewolF sutoL

This example shows how to reverse the string using crbegin() function.

Example 2



This example shows how to get the reverse list using crbegin() 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