填空题
以下程序的输出结果是
[10]
。
char s[ ]="XYZQ";
void main()
char *p;
for(p = s; p < s+4; p++)
cout<<p<<end1;
【参考答案】
XYZQ
YZQ
ZQ
Q
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
函数中的形参和调用时的实参都是变量时,参数传递方式为 [9] 。
点击查看答案
填空题
阅读下列程序,写出程序的运行结果 [8] 。 #include<iostream. h> void main() char str1[ ]: Hello, World; char str2[100]; int i=0; do if (str1[i]>= ’a’&& str1[i]<= ’z’ ) str2[i]=str1[i]-32; else str2[i]=strl [i]; i++; while(strl[i]!=’ 0’); str2[i]=’ 0’; cout<<str1<<end1; cout<<str2<<end1;
点击查看答案
相关试题
多态性可分为二类:编译时和 [15] 。
下列程序中声明了两个类AA和BB,其中函数“...
类是用户定义的类型,具有类类型的变量称作...