How do you invoke a base member function from a derived class in which you have not overridden that function?
No Answer is Posted For this Question
Be the First to Post Answer
Is string an object in c++?
What does h mean in maths?
Can we run c program in turbo c++?
What is the full form of india?
Explain the scope resolution operator?
what is the basic concept of c++(object oriented programing)
what 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
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; }
Eplain extern keyword?
char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?
Why is it called c++?
given the code segment below void main() { cout<<"my no. is"; } question is how can we get the output hai aravind my no. is 99999999999 without editig the main().