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