📜  删除动态数组c++代码示例

📅  最后修改于: 2022-03-11 14:44:49.365000             🧑  作者: Mango

代码示例1
int* v=new int[10];  // Creating a dynamic array

delete[] v; // delete the dynamic array

v=nullptr; //recommended