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
Which format specifier is used for printing a pointer value?
describe private access specifiers?
What does namespace mean in c++?
What is the use of 'this' pointer?
What is a memory leak c++?
What do you mean by function and operator overloading in c++?
What is scope in c++ with example?
Can member functions be private?
Is C++ case sensitive a) False b) Depends on implementation c) True
Does c++ support multilevel and multiple inheritances?
Is c++ the most powerful language?
Explain the purpose of the keyword volatile.
what are the types of Member Functions?
What are the two types of comments, and how do they differ?
Describe linkages and types of linkages?