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 7029int 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 10346what 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 9258what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
2 5822Find out the bug in this code,because of that this code
will not compile.......
#include
Post New C++ General Questions
What is using namespace std in c++?
Evaluate as true or false: !(1 &&0 || !1) a) True b) False c) Invalid statement
Can we declare a base-class destructor as virtual?
daily Routine of father
What is the use of bit fields in structure declaration?
How much maximum can you allocate in a single call to malloc()?
What is a float in c++?
What is the difference between #define debug 0 and #undef debug?
What programming language should I learn first?
What is array give example?
What is the extraction operator and what does it do?
How do you invoke a base member function from a derived class in which you’ve overridden that function?
Tell me can a pure virtual function have an implementation?
Is c++ a dying language?
Explain the pure virtual functions?