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 is the main function c++?
Can union be self referenced?
List the special characteristics of constructor.
Can we use struct in c++?
Is c++ faster than c?
Why main function is special in c++?
What are libraries in c++?
Which of the following is evaluated first: a) && b) || c) !
Where the memory to the static variables is allocated?
When you overload member functions, in what ways must they differ?
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is binary object model?
Which c++ operator cannot overload?
Tell me what are static member functions?