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 6891int 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 10243what 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 6395In a class only declaration of the function is there but defintion is not there then what is that function?
5 9038what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
2 5700Find out the bug in this code,because of that this code
will not compile.......
#include
Post New C++ General Questions
Explain explicit container.
Which field is used in c++?
Should you pass exceptions by value or by reference?
What do you mean by friend class & friend function in c++?
When should we use container classes instead of arrays?
Can non-public members of another instance of the class be retrieved by the method of the same class?
What is setw manipulator in c++?
What is a constant? Explain with an example.
What is abstraction in c++?
What are proxy objects in c++?
Define whitespace in C++.
Is java as fast as c++?
How many types of scopes are there in c++?
Explain about vectors in c ++?
What is the difference between a type-specific template friend class and a general template friend class?