If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?


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

Post New Answer

More C++ General Interview Questions

If all is successful, what should main return a) 0 b) 1 c) void

0 Answers  


What is the difference between the functions memmove() and memcpy()?

0 Answers  


Differentiate between late binding and early binding.

0 Answers  


What is a lambda function c++?

0 Answers  


i want the NIC programmer-B model papaer pattren, iwant the all model papers?

15 Answers   NIC,






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,


The "virtual" specifier in a member function enables which one of the following? a) Monmorphism b) Late binding c) Metamorphism d) Solomorphism e) Inheritance

4 Answers   Quark,


Is c++ map a hash table?

0 Answers  


What does flush do c++?

0 Answers  


What is problem with overriding functions?

0 Answers  


What's the most powerful programming language?

0 Answers  


What is ios in c++?

0 Answers  


Categories