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 / sandeep mannarakkal
Static is independent of object but associated with class, i.e size of the object is independent of the static.
so here answer is 16 byes.(with the assumption of structure padding is available.)
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Is linux written in c or c++?
Can non-public members of another instance of the class be retrieved by the method of the same class?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
Why do we use string in c++?
What does ctime() do?
What are vectors used for in c++?
How many static variables are created if you put one static member into a template class definition?
What is a manipulator in c++?
What is array give example?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
How can you link a c++ program to c functions?
How to implement is-a and has-a class relationships?
Can we define function inside main in c++?
What is the difference between public, private, and protected access?
can any one help to find a specific string between html tags
which is changed to a sting..
weather.html looks (for location) is