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

What is volatile and pragma? When they are used?

1 Answers  


What is constructor in C++?

0 Answers  


How do you print a string on the printer?

0 Answers  


How would you use qsort() function to sort an array of structures?

0 Answers  


Can java be faster than c++?

0 Answers  






What is fflush c++?

0 Answers  


What is function prototyping?

0 Answers  


How many types of classes are there in c++?

0 Answers  


Can we overload operator in c++?

0 Answers  


What is flush programming?

0 Answers  


What is the best free c++ compiler for windows?

0 Answers  


What is using namespace std in cpp?

0 Answers  


Categories