What will happen when an exception is not processed?
Pick out the correct statement for error handling alternatives.
How many levels are there in exception safety?
What is the use of RAII in c++ programing?
What is the output of this program?
1. #include2. #include 3. #include 4. using namespace std; 5. void MyFunc(char c) 6. { 7. if (c < numeric_limits ::max()) 8. return invalid_argument; 9. } 10. int main() 11. { 12. try 13. { 14. MyFunc(256); 15. } 16. catch(invalid_argument& e) 17. { 18. cerr << e.what() << endl; 19. return -1; 20. } 21. return 0; 22. }