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 7136int 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 10440what 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 6655In a class only declaration of the function is there but defintion is not there then what is that function?
5 9448what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
2 5909Find out the bug in this code,because of that this code
will not compile.......
#include
Post New C++ General Questions
What are member functions used in c++?
Can I uninstall microsoft c++ redistributable?
What is an iterator class in c++?
Do vectors start at 0?
Write a program to interchange 2 variables without using the third one.
Explain bubble sorting.
Declare a class vehicle and make it an abstract data type.
How to allocate memory dynamically for a reference?
What is == in programming?
Can you Mention some Application of C/C++?
What is a local reference?
What is time h in c++?
Comment on assignment operator in c++.
What is the maximum value of a unsigned char a) 255 b) 256 c) 128
What is the difference between a template and a macro?