填空题
以下程序运行后的输出结果是
[10]
。 #include<iostream.h> void main(){ char s[]=“123456”,*p; for(p=s; p<s+2; p++) cout<<p<<end1; }
【参考答案】
123456
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
分析下列程序,并写出运行结果 [9] 。#include<iostream.h>void main(){int x[10]:int i=5,*ptr=x;*(ptr+i)=10;cout<<x[i]<<end1;
点击查看答案
填空题
下面程序的执行结果是 [7] 。#include<iostream.h>void main(){int a=0,b=2,c=0,d=30;if(a)d=d-10;else if(B) if(!C) d=15;else d=20;cout<< “d=” <<d<<end1;
点击查看答案
相关试题
基类的 [12] 不能被派生类的成员访问...
如果要把viod fun()定义为类X的友元函数...
ios类中定义的用于控制输入输出的枚举常量...