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 / kanthi
Just as an extension to my point in the previous post...
http://www.cplusplus.com/doc/tutorial/variables.html
the section fundamental datatypes in the above article
substantiates my point...
Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is the fastest c++ compiler?
What are the extraction and insertion operators in c++?
What is constructor in C++?
Is nan a c++?
What does int * mean in c++?
What does count ++ do in c++?
What are the general quetions are in DEna bank manager IT/System interviews?
What do you mean by a template?
What are the types of array in c++?
Is java as fast as c++?
Are c and c++ different?
What are c++ files?
What is the exit function in c++?
What is the difference between an array and a list?
What is runtime polymorphism in c++?