网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下程序: main() { int x[8]={8,7,6,5,0,0},*s; s=x+3; printf("%d\n",s[2]); } 程序运行后的输出结果是______。
A.随机值
B.0
C.5
D.6
参考答案
更多 “ 有以下程序: main() { int x[8]={8,7,6,5,0,0},*s; s=x+3; printf("%d\n",s[2]); } 程序运行后的输出结果是______。A.随机值B.0C.5D.6 ” 相关考题
考题
有以下程序 main( ) { int x[8]={8,7,6,5,0,0},*s; s=x+3; printf("%d\n",s[2]); } 执行后输出结果是A.随机值B.0C.5D.6
考题
有以下程序: main() { int x[8]={8,7,6,5,0,0},*s; s=x+3; printf("%d\n",s[2]); } 执行后输出结果是( )。A.随机值B.0C.5D.6
考题
有以下程序 main() { int x[8]={8,7,6,5,0,0},*9; s=x+3; printf("%d\n",s[2]); } 执行后输出结果是A.随机值B.0C.5D.6
考题
有以下程序: #includestdio.h #includestdlio.h void fun(int*pl,int*p2,int*s) { s=(int*)malloc(sizeof(int)); *s=*pl+*p2; free(s); } main( ) { int a=1,b=40,*q=&a; fun(a,b,q); printf("%d\n",*q); } 程序运行后的输出结果是( )。A.42B.0C.1D.41
考题
有以下程序:includeint a=2;int f(int *a){return (*a) ++;}main(){ int s=0;{ int a=
有以下程序: #include <stdio.h> int a=2; int f(int *a) { return (*a) ++;} main() { int s=0; { int a=5; s+=f(a); } s+=f(a); printf("%d\n",s) } 执行后的输出结果是( )。A.10B.9C.7D.8
考题
有以下程序#inculde stdio.hint Fun(){ ststic int x=1;x*=2;return x;}main (){ int i,s=1;For(i=1;I=2,I + +) s =Fun();printF(“%d\n”,s);}程序运行后的输出结果是A.0B.1C.4D.8
考题
有以下程序: #includestdio.h int fun( ) {static int x=1; X*=2;return X; main( ) int i,s=1; for(i=1;i=2;i++)s=fun( ); printf{¨%d\n",s); } 程序运行后的输出结果是( )。A.0B.1C.4D.8
考题
有以下程序: main() { int x[8]={8,7,6,5,O,0},*s; s=x+3; printf("%d\n",s[2]); } 执行后输出结果是( )。A.随机值B.0C.5D.6
考题
有以下程序: main() { int x[8]={8,7,6,5,0,0},*s; S=x+3; printf("%d\n",s[2]); } 程序运行后的输出结果是 ______ 。A.随机值B.0C.5D.6
热门标签
最新试卷