Define pointers?
No Answer is Posted For this Question
Be the First to Post Answer
How long does this loop run: for(int x=0; x=3; x++) a) Never b) Three times c) Forever
17 Answers Datavance, Quark, VEL, Wipro,
How do you show the declaration of a virtual constructor?
Is java the same as c++?
Is c++ still being used?
sizeof - is it a function or operator?
What is #include ctype h in c++?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
What is the topic of the C++ FAQ list?
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; }
What is a storage class?
how to find the maximum of 10 numbers ?
Explain public, protected, private in c++?