1.

What is the output of this program?
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
try
{
char *ptr;
strcpy(ptr, "Who are u?");
}
catch(const exception& excep)
{
}
}

A. Compilation Error
B. Who are u?
C. Runtime Error
D. segmentation fault
E. None of these
Answer» E. None of these


Discussion

No Comment Found

Related MCQs