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 do you mean by inheritance in c++? Explain its types.

1136


What do you mean by funtion prototype?

1080


What is a pointer with example?

1244


Can union be self referenced?

1144


What are the unique features of C++.

1073


Can c++ be faster than c?

1032


why and when we can declar member fuction as a private in the class?

2072


Can comments be longer than one line?

1072


Explain the difference between c++ and java.

1110


What is a class template in c++?

1048


What is a breakpoint?

1022


What are advantages of using friend classes?

1073


Which is better c++ or java?

979


Which one is better- macro or function?

1189


What is the best c++ ide?

1166