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

Why c++ is so important?

1080


How can we read/write Structures from/to data files?

1135


Which software is best for programming?

1157


Describe the process of creation and destruction of a derived class object?

1120


Show the application of a dynamic array with the help of an example.

1142


Why we use #include conio h in c++?

1053


Should the this pointer can be used in the constructor?

1028


What are the operators in c++?

1119


What is new in c++?

1101


What are the different types of comments allowed in c++?

993


What are c++ files?

1143


What is pointer in c++ with example?

1075


What are the two shift operators and what are their functions?

1092


How long will it take to learn programming?

1064


What is this pointer in c++?

1406