注意:此页面搜索的是所有试题


假定指针变量p定义为“int *p=new int(100);”,要释放p所指向的动态内存,应使用语句( )。
A、
delete p;
B、
delete *p;
C、
delete &p;
D、
delete []p;

参考答案