1.

What is the output of this program?
#include 
using namespace std;
void print (char * str)
{
cout << str << endl;
}
int main ()
{
const char * str = "Interview Mania";
print(const_cast (str) );
return 0;
}

A. Interview
B. Mania
C. Interview Mania
D. All of above
E. None of these
Answer» D. All of above


Discussion

No Comment Found

Related MCQs