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


Please Help Members By Posting Answers For Below Questions

Write a program which employs Recursion

736


What is buffering in c++?

589


What is a singleton c++?

552


What is a singleton class c++?

546


When can I use a forward declaration?

626






Write about c++ storage classes?

758


What are the benefits of oop in c++?

593


Where must the declaration of a friend function appear?

541


write a function signature with various number of parameters.

569


Should I learn c or c++ or c#?

559


what is the difference between overloading & overriding? give example.

566


What are the advantage of using register variables?

643


What are the advantages of pointers?

602


What is enum c++?

618


How the virtual functions maintain the call up?

612