What is size of a empty class?
Answer Posted / mashal
Size of an empty class is 1 byte. It is non zero to ensure that the two different objects will have different addresses.
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Will this c++ program execute or not?
What are the various storage classes in C++?
What is main function in c++ with example?
When the constructor of a base class calls a virtual function, why doesn't the override function of the derived class gets called?
Explain linear search.
what is a class? Explain with an example.
Explain rtti.
What is std :: endl?
If there are two catch statements, one for base and one for derived, which should come first?
What are stacks?
What is the difference between an external iterator and an internal iterator?
What are the extraction and insertion operators in c++? Explain with examples.
Write is a binary search tree? Write an algo and tell complexity?
Can comments be nested?
What is the use of register keyword with the variables?