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 / nisha
no difference
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What is the C-style character string?
Why namespace is used in c++?
Will a catch statement catch a derived exception if it is looking for the base class?
what are the characteristics of Class Members in C++?
What are the four main data types?
Which is most difficult programming language?
Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?
If a base class is an adt, and it has three pure virtual functions, how many of these functions must be overridden in its derived classes?
Why do we use using namespace std in c++?
What is vector pair in c++?
What is the importance of mutable keyword?
Why can’t you call invariants() as the first line of your constructor?
What is the array and initializing arrays in c++?