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
Why Pointers are not used in C++?
Explain deep copy and a shallow copy?
What is the average salary of a c++ programmer?
Why c++ is created?
Explain function overloading and operator overloading.
Explain what you mean by a pointer.
Tell me an example where stacks are useful?
Define private, protected and public access control.
What's the order in which the local objects are destructed?
What can I use instead of namespace std?
Explain virtual class?
Do you know what are pure virtual functions?
What is c++ stringstream?
What is the difference between containment and delegation?
What are the important differences between c++ and java?