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

Tell me can a pure virtual function have an implementation?

968


What are friend classes?

1018


What operators can you overload in c++?

996


How to declare an array of pointers to integer?

1074


Is swift better than c++?

894


Define a pdb file.

1031


How can a struct in c++ differs from a struct in c?

986


Why pointer is used in c++?

1086


What is the prototype of printf function?

1119


the maximum length of a character constant can be a) 2 b) 1 c) 8

1044


What is polymorphism & list its types in c++?

1014


Out of fgets() and gets() which function is safe to use and why?

1136


What is input operator in c++?

986


Define namespace in c++?

1000


Is it possible for the objects to read and write themselves?

1061