1.数组使用
int
* p =
new
int
[5]();
// 数组新建并全部初始化为0
等价于:
int
* p;
p =
new
int
[5]();
int
* q =
new
int
[5];
// array elements all have indeterminate value
时间: 2024-11-07 22:07:43
1.数组使用
int
* p =
new
int
[5]();
// 数组新建并全部初始化为0
等价于:
int
* p;
p =
new
int
[5]();
int
* q =
new
int
[5];
// array elements all have indeterminate value