why can't we declare data member of class auto register or
extern
Answer Posted / 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 |
Post New Answer View All Answers
Explain terminate() and unexpected() function?
What is the difference between an enumeration and a set of pre-processor # defines?
Define the operators that can be used with a pointer.
How can a struct in c++ differs from a struct in c?
How do you clear a buffer in c++?
What is bubble sort c++?
What is set in c++?
What is stack unwinding?
What are single and multiple inheritances in c++?
How to access a variable of the structure?
Comment on c++ standard exceptions?
How to declaring variables in c++?
What is heap sort in c++?
What does it mean to declare a member function as virtual?
What are pointer-to-members in C++? Give their syntax.