The first option, by default, initializes a dynamically allocated int , which for built-in types such as int does not perform any initialization.
The second option value - initializes it, which for int means zero initialization, giving it a value of 0 .
juanchopanza
source share