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
Is map sorted c++?
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?
What is the purpose of extern storage specifier?
What is flag in computer?
Why is c++ still popular?
What are the data types in c++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
Differentiate between a constructor and a method in C++.
What is the use of structure in c++?
Can circle be called an ellipse?
What is operator overloading in c++ example?
What is stoi in c++?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
What do you mean by delegate? Can a user retain delegates?
Differences between private, protected and public and give examples.