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 / lakshmi sahu
22
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
Why do we use structure in c++?
What is null pointer and void pointer and what is their use?
What is flush c++?
What is the difference between #import and #include in c++?
Ask to write virtual base class code?
What are 2 ways of exporting a function from a dll?
What is the difference between *p++ and (*p)++ ?
What is the correct syntax for inheritance a) class aclass : public superclass b) class aclass inherit superclass c) class aclass <-superclass
What should main() return in c and c++?
Incase of a function declaration, what is extern means?
Explain unexpected() function?
What's the "software peter principleā?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
what are Access specifiers in C++ class? What are the types?
What is a multiset c++?