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

What is a set in c++?

531


What is abstraction in c++ with example?

560


How does a C++ structure differ from a C++ class?

621


Implement stack operations with pointers with appropriate exception checks.

567


How can you link a c++ program to c functions?

619






What jobs can you get with a c++ certification?

584


what is a reference variable in C++?

663


What is meant by const_cast?

648


What is the best it certification?

581


How do you compile the source code with your compiler?

615


What is difference between class and structure in c++?

623


Why c++ is better than c language?

557


What is the difference between #import and #include?

547


What is flush c++?

538


What is enum c++?

616