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 / lakshmi sahu

22

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we use structure in c++?

1127


What is null pointer and void pointer and what is their use?

1147


What is flush c++?

1068


What is the difference between #import and #include in c++?

1167


Ask to write virtual base class code?

2798


What are 2 ways of exporting a function from a dll?

1270


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

1406


What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass

1244


What should main() return in c and c++?

1072


Incase of a function declaration, what is extern means?

1020


Explain unexpected() function?

1156


What's the "software peter principleā€?

1190


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

1051


what are Access specifiers in C++ class? What are the types?

1299


What is a multiset c++?

1204