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
Why is null pointer used?
Which is most difficult programming language?
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
What is difference between n and endl in c++?
how to connect with oracle 9i with server in socket program in c/c++
When is the destructor called?
What is the rule of three?
What is the extension of c++?
What is a c++ object?
Which is the best c++ compiler?
What is the difference between public, private, and protected access?
What is lvalue?
What is the identity function in c++? How is it useful?
What's the most powerful programming language?
Write my own zero-argument manipulator that should work same as hex?