已知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;
A.delete []p1; delete []p2;
B.delete []p1; delete p2;
C.delete p1; delete []p2;
D.delete p1; delete p2;
A、delete p;
B、delete *p;
C、delete &p;
D、delete []p;
A.struct { int x; float y; int a[2]; unsigned b[3]; char name[ 10]; };
B.struct stu { unsigned a[3]; unsigned b[4]; }x; int *p=& x.a;
C.street stu { int a; float x[4]; }y={1,1.0}; float data=y.x;
D.struct nd {int a,b; unsigned c[2]=5; };
B、O()
C、O(log2n)
D、O(nlog2n)
A、Compared to x(t), y(t) is advanced
B、Compared to x(t), y(t) is delayed
C、Compared to x(t), y(t) is stretched
D、Compared to x(t), y(t) is compress
A.8,2,3,4,5,6,7,1,
B.5,6,7,8,1,2,3,4,
C.1,2,3,4,5,6,7,8,
D.8,7,6,5,4,3,2,1
A、m_x、m_y和m_radius都是Circle类的成员变量
B、setCenter、setRadius和getArea都是Circle类的成员函数
C、类定义体后面的分号可以省略
D、将double m_radius;改为double m_radius=1;,则表示m_radius成员变量的初值为1
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!