what is the size of an empty class

Answer Posted / asdf

According to the standard C++03, all classes "shall have
nonzero size."

1 byte is the most common implementation but it is left up
to the vendor.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is encapsulation in oops?

633


explain sub-type and sub class? atleast u have differ it into 4 points?

1933


How do you define a class in oop?

730


Can a destructor be called directly?

689


what is graphics

2100






write string class as your own class in java without using any built-in function

2063


Whats oop mean?

682


What exactly is polymorphism?

692


hi all..i want to know oops concepts clearly can any1 explain??

1758


Why is there no multiple inheritance?

643


How oops is better than procedural?

675


What is encapsulation oop?

672


Get me an image implementation program.

1637


What is oops and why we use oops?

667


What is polymorphism in oops?

637