Compiler generated default ctor rules

Hi,

As known, when compiler generated default ctor is called, it initializes the data members(except int, float,etc.)
I wonder if the compiler generates a code that it initializes the arrays of built-in types? There's a rule specified in the standarts?

Thanks
It does not initialize primitive type objects and I believe it does not initialize arrays either. It will call the default constructor for any class member however.
For fixed-length array data members the default constructor of each element is called.
Note that the default constructor for POD types does nothing.
Topic archived. No new replies allowed.