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 is c++ stringstream?
What is the role of static keyword for a class member variable?
Will a catch statement catch a derived exception if it is looking for the base class?
What is the use of c++ programming language in real life?
Is c++ a pure oop language?
What are the types of array in c++?
How does a C++ structure differ from a C++ class?
What is string in c++ programming?
What do the keywords volatile and mean mutable?
Does c++ have arraylist?
What are shallow and deep copy?
What are the important differences between c++ and java?
What is class definition in c++ ?
What is #include iostream h in c++?
Difference between class and structure.