Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous Difficulty: Medium

What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int var = -12; try { cout<<"Inside try\n"; if (var < 0) { throw var; cout<<"After throw\n"; } } catch (char var ) { cout<<"Exception Caught\n"; } cout<<"After catch\n"; return 0; }

Select the correct option to test your answer:

More Computer Questions

. . . . . . . . mode is used when you just have a single server and want to launch all the daemon processes. β€œAn expression that can legally appear on the left side of an assignment expression.” is a well known explanation for variables, properties of objects, and elements of arrays. They are called Consider the following code snippet function f ( o ) { if ( o === undefined ) debugger; } What could be the task of the statement debugger? In C#, which keyword is used to specify that a method can throw a particular type of exception? To hold row and column titles in place so that they do not scroll when you scroll a worksheet click the