why can't we declare data member of class auto register or
extern



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

Post New Answer

More C++ General Interview Questions

How do c++ struct differs from the c++ class?

0 Answers  


How many namespaces are there in c++?

0 Answers  


Can non-public members of another instance of the class be retrieved by the method of the same class?

0 Answers  


What is the difference between C and CPP?

0 Answers   iNautix,


What is c++ similar to?

0 Answers  






What is std :: endl?

0 Answers  


Can I create my own functions in c++?

0 Answers  


What is object in c++ example?

0 Answers  


What is c++ map?

0 Answers  


How are the features of c++ different from c?

0 Answers  


What is array in c++ example?

0 Answers  


What you know about structures in C++?

0 Answers   Agilent, ZS Associates,


Categories