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

20 bytes is right, but static is in data segment portion od
memory, not the heap.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why Pointers are not used in C++?

628


Explain deep copy and a shallow copy?

618


What is the average salary of a c++ programmer?

550


Why c++ is created?

583


Explain function overloading and operator overloading.

630






Explain what you mean by a pointer.

640


Tell me an example where stacks are useful?

602


Define private, protected and public access control.

613


What's the order in which the local objects are destructed?

844


What can I use instead of namespace std?

658


Explain virtual class?

595


Do you know what are pure virtual functions?

646


What is c++ stringstream?

620


What is the difference between containment and delegation?

712


What are the important differences between c++ and java?

611