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...

whats the size of class EXP on 32 bit processor?
class EXP
{
char c1;
char c2;
int i1;
int i2;
char *ptr;
static int mem;
};

Answer Posted / sandeep mannarakkal

Static is independent of object but associated with class, i.e size of the object is independent of the static.
so here answer is 16 byes.(with the assumption of structure padding is available.)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What things would you remember while making an interface?

1054


What is unary operator? List out the different operators involved in the unary operator.

1045


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

1184


What is vector processing?

1206


What are the sizes and ranges of the basic c++ data types?

1097


What are structs in c++?

1081


How do you generate a random number in c++?

1150


What are the benefits of oop in c++?

1315


What are the differences between the function prototype and the function defi-nition?

1157


Is c++ high level programming language?

1181


How do you clear a set in c++?

1132


Why are pointers not used in c++?

1190


When should we use multiple inheritance?

1096


What are guid?

1303


What is the full form of dos?

1244