已经int *p;,则下列语句中能够输出3的语句包括()。
已经int *p;,则下列语句中能够输出3的语句包括()。
A、p=new int(3);cout<<*p;
B、p=new int[3];cout<<*p;
C、p=new int[3]; p[0]=3; cout<<*p;
D、*p=3; cout<<*p;
正确答案:p=new int(3);cout<<*p;#p=new int[3]; p[0]=3; cout<<*p;
Tag:语句
时间:2023-10-31 10:25:21
- 上一篇:The thesis is “The push for learning English has become increasingly counter-productive, and may negatively impact students’ ability to learn English meaningfully.” Which of the following sentences can be regarded as a conflicting idea of the claim above?
- 下一篇:假定已定义浮点型变量data,以二进制方式把data的值写入输出文件流对象outfile中去,正确的语句是()。