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 does ios :: app do in c++?

979


What is const in c++?

1069


What are the classes in c++?

1066


What is private, public and protected inheritance?

1053


Explain the difference between class and struct in c++?

1007


what are the types of Member Functions?

1093


Describe the syntax of single inheritance in C++?

1035


Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1031


What are protected members in c++?

1086


How much do c++ programmers make?

1075


What is a tuple c++?

968


What is enum c++?

1164


How to declare a pointer to an array of integers?

1091


Declare a class vehicle and make it an abstract data type.

933


How did c++ get its name?

986