Javatpoint Logo
Javatpoint Logo

C++ String max_size()

This function returns the maximum length the string can reach due to known system.

Syntax

Consider a string str. Syntax would be:

Parameters

It does not contain any parameter.

Return value

This function returns the maximum length that string can reach.

Example 1

Let's see the simple example.


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