What is sizeof for composite types

The simplest way to understand the value of sizeof for composite types (structures and classes) before digging in to the alignment is to remember that sizeof returns the difference between addresses of two consequent elements of an array containing instances of the type.


Original post | Disclaimer

Comments