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 / shrinidhi

20 bytes.
static is given memory in heap.
for 1st two data members c1 and c2 compiler will take 4
bytes cz of padding.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What will happen if a pointer is deleted twice?

1248


Is facebook written in c++?

1051


What is the best c++ compiler?

1222


What is the purpose of extern storage specifier?

1254


Write a function that swaps the values of two integers, using int* as the argument type?

1080


Is java easier than c++?

1075


How does c++ sort work?

1025


What relational operators if statements in c++?

1233


how to access grid view row?

2283


What is the use of main function in c++?

1018


How does code-bloating occur in c++?

1239


Why c++ is better than c language?

1067


Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

1591


Describe new operator?

1214


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

2626