填空题
下面程序的运行结果是______。
#include<stdio.h>
main()
int y,a;
y=2,a=1;
while(y--!=-1)
doa*=y;a++;while(y--);
printf("%d,%d",a,y);
【参考答案】
1,-2
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
______(黑箱或白箱)测试方法完全不考虑程序的内部结构和内部特征。
点击查看答案&解析
填空题
以下程序的功能是根据输入的“y”(“Y”)与“n”(“N”),在屏幕上分别显示出“This is YES.”与“This is NO.”。空白处需要填入的内容是 #include<stdio.h> void YesNo(char ch) switch(ch) case’y’: case’Y’:printf( n This is YES. n ); case’n’: case’N’:Printf( nThis is NO. n ); main() char ch; printf( nEnter a char’y’,’Y’or’n’,’N’: ); ch=______; printf( ch;%c ,ch); YesNo(ch);
点击查看答案&解析
相关试题
下面的程序实现的是从指针p所指向的地址的n...
下面程序的输出结果是______。 main...
已知bead指向一个带头结点的单向链表,链表...
以下程序的输出结果是______。 #in...
以下程序的功能是从名为filea.dat的文本文...