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 a manipulative person?
What is input operator in c++?
Explain what are single and multiple inheritances in c++?
Should you pass exceptions by value or by reference?
What is the use of bit fields in structure declaration?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
What is difference between array and vector in c++?
Can a Structure contain a Pointer to itself?
What is a class template in c++?
How can you say that a template is better than a base class?
what are the decision making statements in C++? Explain if statement with an example?
What c++ library is string in?
What does asterisk mean in c++?
What are static variables?
What will happen if a pointer is deleted twice?