What does ‘value initializing’ something mean? [duplicate]
A declared variable can be Zero Initialized, Value Initialized or Default Initialized. In your example: Info *p = new Info(); <——- Value Initialization Info *p = new Info; <——- Default Initialization 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 … Read more