catch(exception &e) { . . . } Referring to the sample code above, which one of the following lines of code produces a written description of the type of exception that "e" refers to? a) cout << e.type(); b) cout << e.name(); c) cout << typeid(e).name(); d) cout << e.what(); e) cout << e;
2 7032int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30
2 10348what is the diff b/n c and c++ a. dynamic scoping b. nested switching c. declaration of variables in any code block d. separation of compilation and linking
2 6525In a class only declaration of the function is there but defintion is not there then what is that function?
5 9263what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
2 5824Find out the bug in this code,because of that this code
will not compile.......
#include
Post New C++ General Questions
What is ctime c++?
Can we declare a base-class destructor as virtual?
How can you say that a template is better than a base class?
How do you master coding?
Explain the difference between realloc() and free() in c++?
What do you mean by static variables?
What are containers in c++?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
How can we check whether the contents of two structure variables are same or not?
What is microsoft c++ redistributable?
What causes a runtime error c++?
What does new do in c++?
Can you please explain the difference between static and dynamic binding of functions?
Is c++ platform dependent?
Tell me can a pure virtual function have an implementation?