What is c++ and its uses?


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

Post New Answer

More C++ General Interview Questions

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,


Can a constructor be private?

0 Answers  


What is do..while loops structure?

0 Answers  


What is the output of this prog. ? struct A { A(){ cout << \"A\"; } }; struct B { B(){ cout << \"B\"; } }; struct C { C(){ cout << \"C\"; } }; struct D { D(){ cout << \"D\"; } }; struct E : D { E(){ cout << \"E\"; } }; struct F : A, B { C c; D d; E e; F() : B(), A(),d(),c(),e() { cout << \"F\"; } };

2 Answers  


Which is not a valid keyword a) public b) protected c) guarded

0 Answers  






What is a hashmap c++?

0 Answers  


If a function doesn’t return a value, how do you declare the function?

0 Answers  


Comment on c++ standard exceptions?

0 Answers  


What does h mean in maths?

0 Answers  


Explain bubble sorting.

0 Answers  


What is a dll entry point?

0 Answers  


When do we run a shell in the unix system? How will you tell which shell you are running?

0 Answers  


Categories