Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a manipulative person?

957


What is input operator in c++?

993


Explain what are single and multiple inheritances in c++?

989


Should you pass exceptions by value or by reference?

1102


What is the use of bit fields in structure declaration?

943


What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required

937


What is difference between array and vector in c++?

987


Can a Structure contain a Pointer to itself?

1090


What is a class template in c++?

1020


How can you say that a template is better than a base class?

1039


what are the decision making statements in C++? Explain if statement with an example?

1049


What c++ library is string in?

1017


What does asterisk mean in c++?

1079


What are static variables?

1098


What will happen if a pointer is deleted twice?

1143