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 types of Member Functions?
What do you understand by pure virtual function? Write about its use?
What is ios in c++?
What is the best it certification?
What is an iterator?
What is virtual destructor? What is its use?
What are containers in c++?
What is static in c++?
What are special characters c++?
State the difference between delete and delete[].
What would happen on forgetting [], while deallocating an array through new?
What is difference between malloc()/free() and new/delete?
Can java be faster than c++?
What is an object in c++?
Write a program which employs Recursion