sizeof empty class

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

1) What is the size of an an empty class? On my machine it is showing
1. What is stored at that 1 byte memory?
2) will sizeof() function ever return zero?
3)How constructor/destructor are called when an object is created?
   Any hidden virables will be crerated by the compiler inside the class?
4) Why destructor of derived class is not called when we delete a
baseclass pointer which is pointing to derived class?

Thansk in advance.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux