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 is scope resolution operator in c++ with example?

1040


What is friend class in c++ with example?

1050


What is the difference between an enumeration and a set of pre-processor # defines?

1393


What is the difference between new() and malloc()?

2079


Where are setjmp and longjmp used in c++?

1125


Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

1055


What would happen on forgetting [], while deallocating an array through new?

1093


Is c++ faster than c?

1027


What is the two main roles of operating system?

1043


What is the difference between while and do while loop? Explain with examples.

1112


How is computer programming useful in real life?

1071


What is the extension of c++?

987


Difference between struct and class in terms of access modifier.

1195


What do you mean by function and operator overloading in c++?

1054


When must you use a pointer rather than a reference?

1042