1.

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;
}

A. Interview Mania
B. 159223372036854775807
C. Compilation Error
D. 6 and max size depends on compiler
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs