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
Explain the static storage classes in c++.
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Can a program run without main in c++?
Are php strings immutable?
What are the rules about using an underscore in a c++ identifier?
When is dynamic checking necessary?
Do you know the problem with overriding functions?
Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?
How can I learn c++ easily?
What return value must conversion operators have in their declaration?
Define pre-condition and post-condition to a member function in c++?
What do you mean by late binding?
Why do we need constructors in c++?
What is the basic structure of a c++ program?
What do you mean by overhead in c++?