πŸ“Š C++
Q. How can we restrict a function to throw certain exceptions?
  • (A) Defining multiple try and catch block inside a function
  • (B) Defining generic function within try block
  • (C) Defining function with throw clause
  • (D) It is not possible in CPP to restrict a function
πŸ’¬ Discuss
βœ… Correct Answer: (C) Defining function with throw clause

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
189
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate