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

Which is most difficult programming language?

0 Answers  


When does a name clash occur in c++?

0 Answers  


What is the difference between static global and global ?

2 Answers   CA,


Define a constructor?

0 Answers  


Is multimap sorted c++?

0 Answers  






wrong statement about c++ a)code removably b)encapsulation of data and code c)program easy maintenance d)program runs faster

11 Answers  


Does defining a function inline mean that it wont push and pop things on/off the stack ...like parameters and the return the address??

2 Answers  


Explain deep copy?

0 Answers  


Discussion on error handling of C++ .

0 Answers  


What information can an exception contain?

0 Answers  


Explain the use of vtable.

0 Answers  


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

0 Answers  


Categories