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

Why is null pointer used?

1218


Which is most difficult programming language?

1168


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2048


What is difference between n and endl in c++?

1140


how to connect with oracle 9i with server in socket program in c/c++

2395


When is the destructor called?

1081


What is the rule of three?

1048


What is the extension of c++?

1024


What is a c++ object?

1248


Which is the best c++ compiler?

1127


What is the difference between public, private, and protected access?

1123


What is lvalue?

1212


What is the identity function in c++? How is it useful?

1095


What's the most powerful programming language?

1092


Write my own zero-argument manipulator that should work same as hex?

1094