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 difference in size of this two clasees?
Class A
{
int a;
char c;
float f;
}
Class B
{
float f;
char c;
int a;
}

Answer Posted / truong nguyen

1. No difference in size in this case. There will be
difference in size, however, if the class A and B are
defined below:

Class A
{
int a;
double d;
char c;
}
Class B
{
double d;
char c;
int a;
}

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main function c++?

1172


Can union be self referenced?

1215


List the special characteristics of constructor.

1219


Can we use struct in c++?

1073


Is c++ faster than c?

1083


Why main function is special in c++?

1171


What are libraries in c++?

1131


Which of the following is evaluated first: a) && b) || c) !

2417


Where the memory to the static variables is allocated?

1103


When you overload member functions, in what ways must they differ?

1104


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

1018


Can the creation of operator** is allowed to perform the to-the-power-of operations?

1054


What is binary object model?

1095


Which c++ operator cannot overload?

1073


Tell me what are static member functions?

1134