-
What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string s ("Interview Mania");
cout << s.capacity();
cout << s.max_size();
return 0;
}
-
- Interview Mania
- 159223372036854775807
- Compilation Error
- 6 and max size depends on compiler
- None of these
Correct Option: D
In this program, We are printing the capacity and max size of the string.