str.max_size();
#include<iostream> using namespace std; int main() { string str = "Hello world"; cout<<"String is :" <<str<<'\n'; cout<<"Maximum size of the string is :"<<str.max_size(); return 0; }