已知int *p1=new int(3); int *p2=new int[3];,则下列语句中,能够正确释放p1和p2所指内存空间的选项包括()。
已知int *p1=new int(3); int *p2=new int[3];,则下列语句中,能够正确释放p1和p2所指内存空间的选项包括()。
A、delete p1; delete p2;
B、delete p1; delete p2;
C、delete p1; delete p2;
D、delete p1; delete p2;
正确答案:delete p1; delete p2;#delete p1; delete p2;