Vidyalelo
C++ Programming · Q53

Functions and Procedures in C++

Programming · C++ Programming · question 53

Q53

What will be the output of the following C++ code? #include using namespace std; void Funct(); int main() try Funct(); catch(double) cerr << "caught a double type..." << endl; return 0; void Funct() throw 3;

A.
caught a double type
B.
compile time error
C.
abnormal program termination
Answer
D.
runtime error

Answer: Option C

Solution

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