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 the size of an empty class is 1

Answer Posted / surender a

Because the fundamental size is a char [viz 1 byte by
default on any 32 bit or 64 bit machine].

Is This Answer Correct ?    5 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use templates?

1050


Do you need a main function in c++?

1120


Is c++ a good first language to learn?

1068


Why is c++ called oops?

1172


What is wrapper class in c++?

1117


Write a Program for read a line from file from location N1 to N2 using command line arguments. Eg:exe 10 20 a.c

1295


Differentiate between an external iterator and an internal iterator?

998


Will a recursive function without an end condition every quit, in practice a) Compiler-Specific (Some can convert to an infinite loop) b) No c) Yes

1079


What is a friend function in c++?

1631


Why do we need constructors in c++?

1110


What is the role of copy constructor in copying of thrown objects?

1068


What do the keywords volatile and mean mutable?

1052


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

968


What is double in c++?

1068


What is pure virtual function?

1064