假定指针变量p定义为“int *p=new int [100];”,要释放p所指向的动态内存,应使用语句
A.delete p;
B.delete *p;
C.delete &p;
D.delete []p;
正确答案是D
扫描二维码免费使用微信小程序搜题/刷题/查看解析。
版权声明:本文由翰林刷题小程序授权发布,如需转载请注明出处。
本文链接:https://doc.20230611.cn/post/240195.html
上一篇:我国目前按超率累进税率征收的税是
下一篇:How close parents are to their children ____ a strong influence on the character of children.