假定指针变量p定义为“int*p=newint(100);”,要释放p所指向的动态内存,应使用语句()。
A:deletep;
B:delete*p;
C:delete&p;
D:delete[]p;
出自:国家开放大学《面向对象程序设计》