int *p = new int(10)和int *p = new int[10]的区别时间:2025-03-10 18:08:16int* p = new int (10) 是创建一个int型的内存,并赋值为10; int *p = new int[10] 是创建10个int型的内存;