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
What should main() return in c and c++?
What language is a dll written in?
Is there a sort function in c++?
How to declare a pointer to an array of integers?
How many types of scopes are there in c++?
When should we use container classes instead of arrays?
How is c++ different from java?
When is the destructor called?
What is ios class in c++?
Can we distribute function templates and class templates in object libraries?
Explain what are the sizes and ranges of the basic c++ data types?
What is a c++ class?
When should we use multiple inheritance?
Describe public access specifiers?
What is exception handling? Does c++ support exception handling?