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 the size of this class
class size
{
public:
char data1;
double d;
int data2;
char data3;
double data4;
short data5;
};

please explain the padding for these double variables.

Answer Posted / kanthi

Just as an extension to my point in the previous post...
http://www.cplusplus.com/doc/tutorial/variables.html

the section fundamental datatypes in the above article
substantiates my point...

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how to initialize a const data member.

1079


What is the difference between *p++ and (*p)++ ?

1301


What does I ++ mean in c++?

1045


Explain the benefits of proper inheritance.

1097


What does std :: flush do?

1082


Is c++ proprietary?

1016


Explain rtti.

1033


Explain what are accessor methods?

1074


what are function pointers?

990


What are vectors used for in c++?

1028


What does count ++ do in c++?

1165


What is the use of 'this' pointer?

1221


What is a c++ vector?

1000


What are the various situations where a copy constructor is invoked?

1083


Write a program to concatenate two strings.

1037