Are default-initialized variables automatically zero?
A declared variable can be Zero Initialized, Value Initialized or Default Initialized. The C++03 Standard 8.5/5 aptly defines each: To zero-initialize an object of type T means: — if T is a scalar type (3.9), the object is set to the value of 0 (zero) converted to T; — if T is a non-union class … Read more