填空题
有以下程序: #include <stdio.h> main() { char ch1,ch2;int n1,n2; ch1=getchar();ch2=getehar(); n1=ch1-’0’; n2=n1*10+(ch2-’0’); printf("%d\n",n2); } 程序运行时输入:12<回车>,执行后的输出结果是
【9】
。
【参考答案】
L
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
有以下程序:#include <stdio.h>main(){ int t=1,i=5;for(;i>=0;i--) t*=i;printf( %d n ,t);}执行后的输出结果是 【8】 。
点击查看答案&解析
填空题
有以下程序:#include <stdio.h>void f(int y,int *x){ y=y+ *x; *x=*x+y;}main(){ int x=2,y=4;f(y,&x);printf( %d%d n ,x,Y);}执行后的输出结果 【6】 。
点击查看答案&解析
相关试题
下面rotate函数的功能是:将n行n列的矩阵A...
以下程序的运行结果是 【17】 。#incl...
已知字符’A’的ASCII码值为65,以下语句...
有以下语句段:int n1=10,n2=20...
以下sum函数的功能是计算下列级数之和:请...