Please use this tag for asking questions related to initializing value of object to ints zero value type. For more details related to zero initialization please see https://en.cppreference.com/w/cpp/language/zero_initialization
- For primitives zero-initialization creates them with a value-initialization of 0
- For objects all of the primitives they are made up of are zero-initialized followed by default intialization
- For arrays zero-initialization occurs using the rules above, based on whether the array elements are primitives or objects
For more information see: http://en.cppreference.com/w/cpp/language/zero_initialization