+ 1

What are the uses of try catch and throw in c++

At many places in solo learn c++ I've come across these terms , please tell me the uses of these

18th Jun 2019, 2:04 AM
Akash Raj
Akash Raj - avatar
1 Answer
+ 1
In C++ exceptions are responses to anomalies that arise while the program is running, such as an attempt to divide by zero. Try, catch, and throw are used to handle these exceptions.
18th Jun 2019, 2:10 AM
Pikachu
Pikachu - avatar