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


Please Help Members By Posting Answers For Below Questions

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?

1742


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

573


What is the C-style character string?

607


Why namespace is used in c++?

604


Will a catch statement catch a derived exception if it is looking for the base class?

563






what are the characteristics of Class Members in C++?

595


What are the four main data types?

587


Which is most difficult programming language?

582


Does there exist any way to make the command line arguments available to other functions without passing them as arguments to the function?

749


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?

592


Why do we use using namespace std in c++?

605


What is vector pair in c++?

711


What is the importance of mutable keyword?

585


Why can’t you call invariants() as the first line of your constructor?

564


What is the array and initializing arrays in c++?

508