Vidyalelo
C++ Programming · Q896

C++ miscellaneous

Programming · C++ Programming · question 896

Q896

What will be the output of the following C++ code? #include #include using namespace std; int main() try char *p; strcpy(p, "How r u"); catch(const exception& er)

A.
How r u
B.
segmentation fault
Answer
C.
error
D.
runtime error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board