why can't we declare data member of class auto register or
extern
Answer / kavitha shetty
since data members gets memory allocated through object not
individual..so always memory allocated for object...
otherwise u might get error like illegal storage class
Is This Answer Correct ? | 5 Yes | 0 No |
Explain what is class definition in c++ ?
Describe friend function & its advantages.
What is the use of "new" operator?
when can we use copy constructor?
What is friend class in c++ with example?
Explain the scope resolution operator?
How to demonstrate the use of a variable?
What does new in c++ do?
Which should be more useful: the protected and public virtuals?
What is a dangling pointer in c++?
Can I run c program in turbo c++?
How can you create a virtual copy constructor?