1.

What is the output of this program?
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string Str;
char StrArray[30]= "Hello Interview Mania";
Str = StrArray;
cout << Str << ' n';
return 0;
}

A. Hello
B. Interview
C. Mania
D. Hello Interview Mania
E. Compilation Error
Answer» E. Compilation Error


Discussion

No Comment Found

Related MCQs