C++ String crbegin()The crbegin() function stands for 'reverse beginning'. This function references to the last character of the string. SyntaxConsider a string str. Syntax would be: ParameterThis function does not contain any parameter. Return valueThis function returns the constant iterator pointing to the last character of the string. Example 1Let's see the simple example of crbegin() function: Output: rewolF sutoL This example shows how to reverse the string using crbegin() function. Example 2Output: 54321 This example shows how to get the reverse list using crbegin() function. Next TopicC++ Strings |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India