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 an incomplete type in c++?
What are libraries in c++?
What is data binding in c++?
Is eclipse good for c++?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is a tuple c++?
What is the use of c++ programming language in real life?
Is c++ low level?
What is the difference between public, private, and protected access?
What is fflush c++?
What is null pointer and void pointer?
What are the various compound assignment operators in c++?
Write a recursive program to calculate factorial in c++.
Why is c++ considered difficult?
What is vector processing?