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 does extern mean in a function declaration in c++?

1153


What is c++ hiding?

1113


What should main() return in c and c++?

967


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

2145


Why is polymorphism useful?

1017


Tell me an example where stacks are useful?

982


Explain the use of this pointer?

1113


Explain abstraction.

1032


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1091


What is the use of setfill in c++?

1031


Why is "using namespace std;" considered bad practice?

1035


Does c++ have foreach?

978


What are the general quetions are in DEna bank manager IT/System interviews?

1951


Explain what are accessor methods?

1066


Which bit wise operator is suitable for turning off a particular bit in a number?

1051