Does c++ have finally?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

What is scope in c++ with example?

0 Answers  


Which one is a preferred language C or C++? Why?

0 Answers  


What are destructors?

0 Answers  


int 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 Answers   AIG, Quark,


Declare a class vehicle and make it an abstract data type.

0 Answers  






What do you mean by stack unwinding in c++?

0 Answers  


Difference between Overloading and Overriding?

35 Answers   Appnetix Techno, GameLoft, HP, IBM, NIIT, Rohde and Schwarz,


Should the this pointer can be used in the constructor?

0 Answers  


Can turbo c++ run c program?

0 Answers  


What is public, protected, private in c++?

0 Answers  


Describe the process of creation and destruction of a derived class object?

0 Answers  


Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; }

2 Answers   Impetus,


Categories