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 is stoi in c++?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
What is the difference between a pointer and a link in c ++?
Are strings mutable in c++?
Can we sort map in c++?
What is a tree in c++?
Is c++ vector a linked list?
What is iomanip c++?
Can we inherit constructor in c++?
What is function overloading c++?
What are advantages of c++?
What is a dll entry point?
Do you know what is overriding?
How should a contructor handle a failure?
Which operations are permitted on pointers?