The problem that arises during execution of a program is referred as exceptional handling. The exceptional handling in C++ is done by three keywords.
a). Try: It identifies a block of code for which particular exceptions will be activated
b). Catch: The catch keyword indicates the catching of an exception by an exception handler at the place in a program
c). Throw: When a problem exists while running the code, the program throws an exception
Posted Date:- 2021-08-24 06:22:54
What is the role of the Static keyword for a class member variable?
What is a COPY CONSTRUCTOR and when is it called?
What is the difference between an Object and a Class?
Explain Register Storage Specifier.
What is a Storage Class? Mention the Storage Classes in C++.
What is wrong with this code?
T *p = 0;
delete p;
Explain what is COPY CONSTRUCTOR and what is it used for?
Explain what is pre-processor in C++?
Explain what is upcasting in C++?
Explain what is C++ exceptional handling?
What is the C-style character string?
Explain what are Access specifiers in C++ class? What are the types?
Define basic type of variable used for a different condition in C++?
.Explain Function overloading with a different number of arguments with an example?
Explain the declaration of variables in C++?
How To Get The Current Position Of The File Pointer?
What is an Inline function in C++?
How to reverse a vector in C++?
How to initialize vector in C++?
What are new and delete operator?
How to concatenate two strings in C++?
Explain briefly Classes & Objects?
What is calloc() function? Describe the syntax?
What is the function of the keyword "Auto"?
What are the functions of the scope resolution operator?
Can we have a String primitive data type in C++?
What is a mutable storage class specifier? How can they be used?
What do you mean by ‘void’ return type?
How to initialize a 2d vector in C++?
What is stl in C++ with example?
What is the use of pure virtual function?
What are character constants in C++?
Is there any advantage of using one over the other?
What is the difference between equal to (==) and Assignment Operator (=)?
How many ways are there to initialize an int with a Constant?
Comment on Local and Global scope of a variable.
Difference between Declaration and Definition of a variable.
What are the types of Polymorphism?