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
What are the benefits of c++?
What is wrapper class in c++?
Explain the difference between new() and malloc() in c++?
What c++ is used for?
Give an example of run-time polymorphism/virtual functions.
Can static member variables be private?
Difference between pass by value and pass by reference?
What is data abstraction? How is it different from data encapsulation?
What happens when you make call 'delete this;'?
What is Destructor in C++?
What are signs of manipulation?
What does override mean in c++?
What is the difference between a baller and a reference in C++?
What is flush () in c++?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list