观察程序(因为学堂在线系统限制,为了能够显示程序,程序中符号使用全角字符,实际应该使用半角,请在考虑答案时忽略全角字符的问题)#include<iostream> usingnamespacestd; intmain() { int*first,*second; first=newint(5); second=first; delete()second; delete()first; return0;} 该程序是否正确,原因是什么?
A
A.正确,因为first和second都是独立的指针变量
B
B.不正确,因为first和second是相关而非独立的指针变量
D
D.不正确,second和first指向相同的内容