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's the most powerful programming language?
What is a volatile variable in c++?
Explain differences between new() and delete()?
What do you understand by zombie objects in c++?
why is c++ called oops? Explain
Why do we learn c++?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
What is capacity in vector in c++?
Are there any special rules about inlining?
what are the iterator and generic algorithms.
What is a node class in c++?
What is a rooted hierarchy?
which of the following is not an secondary constant a) array b) real c) union
What is a constructor in c++ with example?
What are the advantages of using typedef in a program?