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 arraylist c++?
What is array in c++ pdf?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it.
What is using namespace std in c++?
Write a program to concatenate two strings.
Is java made in c++?
what are the types of Member Functions?
Can we use pointers in c++?
How is c++ different from java?
What is virtual destructor? What is its use?
Do you know what are the new features that iso/ansi c++ has added to original c++ specifications?
What is a .h file c++?
How do you clear a set in c++?
What is enum class in c++?
Difference between overloading vs. Overriding