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 do you mean by inheritance in c++?
What is ios :: in in c++?
When must you use a pointer rather than a reference?
What is the full form nasa?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is long in c++?
Can a function take variable length arguments, if yes, how?
What does h mean in maths?
Write is a binary search tree? Write an algo and tell complexity?
What is the difference between new() and malloc()?
What is c++ iterator?
What is a buffer c++?
What do you mean by volatile and mutable keywords used in c++?
What is pure virtual function?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal