单选题:关于new和delete运算符描述错误的是( )
关于new和delete运算符描述错误的是( )
A.int* p=new int(10)用delete p删除
B.int* p=new int[10]用delete[] p删除
C.vector<int>* v=new vector<int>(10) 用delete[] v删除
D.array<int,4> a={1,2,3,4}不用delete删除
answer:C
A.int* p=new int(10)用delete p删除
B.int* p=new int[10]用delete[] p删除
C.vector<int>* v=new vector<int>(10) 用delete[] v删除
D.array<int,4> a={1,2,3,4}不用delete删除
answer:C