Company Name Starts with ...
#  A  B  C  D  E   F  G  H  I  J   K  L  M  N  O   P  Q  R  S  T   U  V  W  X  Y  Z

Impetus C++ General Interview Questions
Questions Answers Views Company eMail

Find out the bug in this code,because of that this code will not compile....... #include #include #include 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 4222

Write a program to show polymorphism in C++?

126

How do we balance an AVL Tree in C++?

153

Difference between Abstraction and encapsulation in C++?

150

Post New Impetus C++ General Interview Questions






Un-Answered Questions

what is pile and deam foundation

1229


How do you declare static variable? What is its lifetime?

78


What are the areas where I need to make improvement? (Please provide examples and suggestions for improvement).

609


What are the Core interfaces of Hibernate framework?

1


Explain data normalization.

1






Explain the differences between ActiveX Dll and ActiveX Exe?

1108


Mention some of the data mining techniques?

1


Explain two-tier connection?

93


How can I clean up my computer?

68


suppose I have 1000 rows in a db2 table. I want to update first 100 records, how do I do it?

160


What is geophysicists?

90


How Oracle HRMS helps in Budgeting and Costing?

147


What do heavy weight components mean in java programming?

97


Can you explain the advantage of using shortcuts?

121


Explain cmm?

125