1. dynamic create object and initialization
int *pi = new int; // pi points to an uninitialized int
int *pi = new int(); // pi points to an int value initialized to 0
2024-03-12 23:05:44
1. dynamic create object and initialization
int *pi = new int; // pi points to an uninitialized int
int *pi = new int(); // pi points to an int value initialized to 0