首页
›
答案
›
题库
›
远程教育
›
国家开放大学
已经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;
标签:
语句
上一条:
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中去,正确的语句是()。