填空题
阅读下面程序,则程序的执行结果为______。 #include"stdio.h" main() {int a=10; fun(a); printf("%d\n",a);} fun(int x) {x=50;}
【参考答案】
J
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
下面程序是求出数组arr的两条对角线上的元素之和,请填空。 #include stdio.h main() { int arr[3][3]={2,3,4,8,3,2,7,9,8),a=0,b=0,i,j; for(i=0;i<3;i++) for(j=0;<3;j++) if(i=j) a=a+arr[i][j]; flor(i=0;i<3;i++) for(______;j>=0;j--) if(______==2) b=b+arr[i][j]; printf( %d,%d n ,a,b); }
点击查看答案&解析
填空题
以下程序运行后的输出结果是______。 #include<string.h> main() {char ch[]= abcd ,x[4][4];int i; for(i=0;i<4;i++)strcpy(x[i],ch); for(i=0;i<4;i++)printf( %s ,&x[i][i]); printf( n ); }
点击查看答案&解析
相关试题
函数fun的功能是:根据以下公式求P的值,结...
先有两个C程序文件T18.c和myfun.c同在T...