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


Please Help Members By Posting Answers For Below Questions

What is null and void pointer?

832


what is data abstraction in C++?

867


Do you know the problem with overriding functions?

839


Can you sort a set c++?

805


What are the three forms of cin.get() and what are their differences?

889


Why do we need runtime polymorphism in c++?

777


why and when we can declar member fuction as a private in the class?

1851


What is an overflow error?

869


Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.

1994


What is the difference between C and CPP?

865


Which operator cannot overload?

834


What does flush do c++?

835


What things would you remember while making an interface?

794


what kind of projects are suitable for c and c++

846


What are the new features that iso/ansi c++ has added to original c++ specifications?

840