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 |
Array base access faster or pointer base access is faster?
What is a template in c++?
How do you initialize a class member, class x { const int i; };
Is recursion allowed in inline functions?
What does int * mean in c++?
How do you allocate and deallocate memory in C++?
What are different types of polymorphism supported by C++
Why did you leave your last job?
What is a buffer c++?
When do we run a shell in the unix system?
Can a class be static in c++?
What is name mangling?