单选题:new和delete运算符正确的使用是( )
new和delete运算符正确的使用是( )
A.c++
int* p=new int[10];
delete p;
B.c++
int* p=new int(10);
delete []p;
C.c++
vector<int>* v=new vector<int>[10];
delete []v;
D.c++
int* a=new int[]{1,2,3,4};
delete []a;
answer:C
A.c++
int* p=new int[10];
delete p;
B.c++
int* p=new int(10);
delete []p;
C.c++
vector<int>* v=new vector<int>[10];
delete []v;
D.c++
int* a=new int[]{1,2,3,4};
delete []a;
answer:C