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 ios :: app do in c++?
What is const in c++?
What are the classes in c++?
What is private, public and protected inheritance?
Explain the difference between class and struct in c++?
what are the types of Member Functions?
Describe the syntax of single inheritance in C++?
Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.
What are protected members in c++?
How much do c++ programmers make?
What is a tuple c++?
What is enum c++?
How to declare a pointer to an array of integers?
Declare a class vehicle and make it an abstract data type.
How did c++ get its name?