why the size of an empty class is 1

Answer Posted / abhishek

its because an empty class makes an entry to symbol table (code segment)
which requires a symoblic mapping of 1 byte

Is This Answer Correct ?    9 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do class declarations end with a semicolon?

689


What is the first name of c++?

664


What's the hardest coding language?

647


Explain the static storage classes in c++.

789


Can I uninstall microsoft c++ redistributable?

687






Is string an object in c++?

751


Why is c++ still best?

645


How do pointers work?

808


Differentiate between an inspector and a mutator ?

790


What is data type in c++?

650


Does c++ have foreach?

626


What is meant by the term name mangling in c++?

608


What are built-in functions? What is the syntax for the definition?

678


Why is swift so fast?

718


What is binary object model?

676