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...

What is size of a empty class?

Answer Posted / ganesh

when ever an datamember is not the part of the class then default value for object size is 1 byte.
but if int a;
char c;
then it will consume 3 bytes .........

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;

2009


What is a manipulator in c++?

1237


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

1073


Which programming language should I learn first?

1104


What is the full form of india?

1133


What is encapsulation in c++?

1299


If dog is a friend of boy, is boy a friend of dog?

986


What is using namespace std in cpp?

1167


Can I create my own functions in c++?

1091


What does ios :: app do in c++?

1040


Can I uninstall microsoft c++ redistributable?

1123


What is static in c++?

1063


Is there any difference between int [] a and int a [] in c++?

1024


What is the difference between map and hashmap in c++?

1115


Define pure virtual function?

995