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
What things would you remember while making an interface?
What is unary operator? List out the different operators involved in the unary operator.
How can we read/write Structures from/to data files?
What is vector processing?
What are the sizes and ranges of the basic c++ data types?
What are structs in c++?
How do you generate a random number in c++?
What are the benefits of oop in c++?
What are the differences between the function prototype and the function defi-nition?
Is c++ high level programming language?
How do you clear a set in c++?
Why are pointers not used in c++?
When should we use multiple inheritance?
What are guid?
What is the full form of dos?