C++ Interview - using new and delete to alloc and free memory
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
技术改变世界
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