1.

What is the use of RAII in c++ programming?(a) Improve the exception safety(b) Terminate the program(c) Exit from the block(d) Crash the compilerThe question was posed to me in examination.Enquiry is from Error Handling Alternatives topic in portion Derived Classes, Templates & Exception Handling in C++ of C++

Answer»

Right OPTION is (a) IMPROVE the exception SAFETY

Easy EXPLANATION - RAII is used to improve the exception safety.



Discussion

No Comment Found

Related InterviewSolutions