Why are pointers not used in c++?
No Answer is Posted For this Question
Be the First to Post Answer
What are its advantages and disadvantages of multiple inheritances (virtual inheritance)?
Explain the term memory alignment?
how can u create a doubly linked list with out using pointers?
Are vectors passed by reference c++?
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; }
Why seem interrupt handlers as member functions to be impossible?
What is the latest version on c++?
What is c++ redistributable?
What is operator overloading in c++ example?
What is the best c++ ide?
Difference between Top down and bottom up approaches for a given project ?
14 Answers BSNL, CSC, HCL, HP, IIT, Infosys, Siemens,
Differentiate between a deep copy and a shallow copy?