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 unary operator? List out the different operators involved in the unary operator.
What is the use of "new" operator?
What is the latest c++ standard?
Is ca high or low level language?
What are files in c++?
Explain how an exception handler is defined and invoked in a Program.
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
What is static class data?
What is the difference between struct and class?
Is there a c++ certification?
How does java differ from c and c++?
What are namespaces in c++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
How the endl and setw manipulator works?
What is the best free c++ compiler for windows?