Vidyalelo
C++ Programming · Q359

C++ miscellaneous

Programming · C++ Programming · question 359

Q359

How one can restrict a function to throw particular exceptions only?

A.
By defining multiple try-catch blocks inside a function
B.
By defining a generic function within a try-catch block
C.
By defining a function with throw clauses
Answer
D.
Not allowed in C++

Answer: Option C

Solution

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