C++ COURSE
C++ Exceptions
Learn C++ programming with EDUHUB Code Hub.
C++ Exception Handling
Exceptions handle unexpected errors during program execution.
try{
int age=0;
if(age==0)
throw age;
}
catch(int error){
cout << "Error";
}