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

What are the benefits of c++?

572


What is wrapper class in c++?

631


Explain the difference between new() and malloc() in c++?

625


What c++ is used for?

587


Give an example of run-time polymorphism/virtual functions.

568






Can static member variables be private?

634


Difference between pass by value and pass by reference?

607


What is data abstraction? How is it different from data encapsulation?

539


What happens when you make call 'delete this;'?

603


What is Destructor in C++?

641


What are signs of manipulation?

597


What does override mean in c++?

592


What is the difference between a baller and a reference in C++?

579


What is flush () in c++?

581


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

616