what is the size of this class
class size
{
public:
char data1;
double d;
int data2;
char data3;
double data4;
short data5;
};
please explain the padding for these double variables.
Answer Posted / lakshmi sahu
22
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
What do the keywords volatile and mean mutable?
What is a memory leak c++?
Explain the difference between c & c++?
What is meant by a delegate?
What is the difference between a pointer and a link in c ++?
Where Malloc(), Calloc(), and realloc() does get memory?
How a new operator differs from the operator new?
How much do coding jobs pay?
How can a struct in c++ differs from a struct in c?
Is empty stack c++?
Why do we use the using declaration?
When does a 'this' pointer get created?
Arrange Doubly linked list in the ascending order of its integral value and replace integer 5 with 7?
Describe the advantages of operator overloading?
daily Routine of father