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 null pointer is used?
Can we define function inside main in c++?
describe private access specifiers?
Is there a c++ certification?
Can you please explain the difference between overloading and overriding?
Write a program which employs Recursion
Is c++ platform dependent?
What is the extension of c++?
Assume studentNames and studentIDs are two parallel arrays of size N that hold student data. Write a pseudocode algorithm that sorts studentIDs array in ascending ID number order such that the two arrays remain parallel.
What are the advantages of early binding?
What is the use of main function in c++?
What is the identity function in c++? How is it useful?
How is computer programming useful in real life?
What is polymorphism and its type in c++?
What is the use of :: operator in c++?