42 Exception Handling in C++ | C++ Programming Tutorial for beginners | cpp | C plus plus

Pubblicato il: 19 marzo 2021
sul canale di: tech fort
120
3

#Exception handling in c ++ :

Compile time errors:

Errors caught during compiling time is called as compile time errors.
spelling mistake, syntax errors, wrong import class etc....


programmer/developer


Run time errors(Logical Error/Exception):
An exception caught during run time and also creates issue like program stops abnormally.


Exception handling in c++ is a process to handle runtime errors.


3 keywords: try, catch, throw




throw: program throws an exception when a program occurs/show. We can use "throw" keyword.


catch: program catches an exception with an exception handler at place in a program where programmer want to handle the problem/issue. we can use catch keyword.


try: try block to identify the code for which a particular exceptions will be activated/generated.


Exception handling:
--------------------


In questa pagina del sito puoi guardare il video online 42 Exception Handling in C++ | C++ Programming Tutorial for beginners | cpp | C plus plus della durata di ore minuti seconda in buona qualità , che l'utente ha caricato tech fort 19 marzo 2021, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 120 volte e gli è piaciuto 3 spettatori. Buona visione!