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

Explain what is class definition in c++ ?

0 Answers  


Describe friend function & its advantages.

0 Answers   TCS,


What is the use of "new" operator?

0 Answers  


when can we use copy constructor?

6 Answers   HP,


What is friend class in c++ with example?

0 Answers  






Explain the scope resolution operator?

2 Answers  


How to demonstrate the use of a variable?

0 Answers  


What does new in c++ do?

0 Answers  


Which should be more useful: the protected and public virtuals?

0 Answers  


What is a dangling pointer in c++?

0 Answers  


Can I run c program in turbo c++?

0 Answers  


How can you create a virtual copy constructor?

0 Answers  


Categories