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 6914int 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 10267what 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 6427In a class only declaration of the function is there but defintion is not there then what is that function?
5 9081what is the behaviour of C and C++ compiler for the below statements. int *p; p = malloc(100); Is the behaviour same ? or different ?
2 5724Find out the bug in this code,because of that this code
will not compile.......
#include
Post New C++ General Questions
Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes
Describe the setting up of my member functions to avoid overriding by the derived class?
What parameter does the constructor to an ofstream object take?
Is it possible for the objects to read and write themselves?
What are the types of pointer?
Explain the difference between struct and class in terms of access modifier.
Can I run c program in turbo c++?
How do you traverse a btree in backward in-order?
Using a smart pointer can we iterate through a container?
Why is c++ called oops?
Do vectors start at 0?
Is java based off c++?
What is a breakpoint?
What are c++ variables?
Can a program run without main in c++?