Export (0) Print
Expand All

4.5.1 Automatic Array Initialization

Visual Studio .NET 2003

When allocating an array whose element type is a C++ primitive data type, the elements are 0-initialized.

When allocating an array whose element type is pointer-to a __gc class the elements are 0-initialized.

When allocating an array whose element type is a value type V, the default constructor for V is applied to each array element.

Show:
© 2014 Microsoft