1.

What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string str ("Prayagraj Shakya");
cout << str.capacity() << " n";
return 0;
}

A. Runtime Error
B. 16
C. Prayagraj Shakya
D. Compilation Error
E. None of these
Answer» C. Prayagraj Shakya


Discussion

No Comment Found

Related MCQs