What is the difference in size of this two clasees?
Class A
{
int a;
char c;
float f;
}
Class B
{
float f;
char c;
int a;
}
Answer Posted / truong nguyen
1. No difference in size in this case. There will be
difference in size, however, if the class A and B are
defined below:
Class A
{
int a;
double d;
char c;
}
Class B
{
double d;
char c;
int a;
}
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
what does the following statement mean? int (*a)[4]
Explain the isa and hasa class relationships.
Is std :: string immutable?
Explain function overloading
What does flush do?
what is pre-processor in C++?
What is endl c++?
Discussion on error handling of C++ .
Name four predefined macros.
Should I learn c++ c?
How can an improvement in the quality of software be done by try/catch/throw?
What is the use of endl?
What is data types c++?
Can we use struct in c++?
Can you use the function fprintf() to display the output on the screen?