Home » C++ String max_size() function

C++ String max_size() function

by Online Tutorials Library

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

You may also like