填空题
若有如下程序:
void sub()
static int x=6;
x/=2;printf("%d",x);
main()
int m;
for(m=0;m<=2;m++) sub();
则程序运行后的输出结果是
【17】
。
【参考答案】
310
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
以下程序的功能是对从键盘上输入的两个字符串进行比较,然后输出两个字符串中第一个不相同字符的ASCII码值之差。请填空。 #include stdio.h main() char a1[20],a2[20]; int n=0,t; scanf( %st ,a1); scanf( %s ,a2); while(a1[n]!=a2[n]&&(a1[n]!= 【15】 )) t= 【16】 ; printf( %d n ,t); n++;
点击查看答案
填空题
以下程序段用于构成一个简单的单向链表。请填空。 struet STRU int x,y; float rate; 【14】 p; a,b; a.x=0; a.y=0;a.rate=0;a.p=&b; b.x=0;b.y=0;b.rate=0;b.p=NULL;
点击查看答案
相关试题
下面程序把从终端读入的10个整数以二进制...
定义长度为12的数组,下面四种方法中正确...
以下程序的运行结果是 【13】 。 main...