以下程序的输出结果是___( )___.#include void main(){ int i,a[10]; for(i=9;i>=0;i--) a[i]=10-i; printf("%d%d%d",a[2],a[5],a[8]); }
A. 258
B. 741
C. 852
D. 369
查看答案
下列程序的输出结果是___( )___.#include void main(){char b[]="ABCDEFG"; char p=0; while(p<7) putchar(b[p++]); putchar('\n'); }
A. GFEDCBA
BCDEFG
C. ABCDEFG
D. GFEDCB
以下程序的输出结果是___( )___.#includevoid main(){ int i,x[3][3]={1,2,3,4,5,6,7,8,9}; for(i=0;i<3;i++) printf("%d,",x[i][i]); printf("\n"); }
A. 1,5,9,
B. 1,4,7,
C. 3,5,7,
D. 3,6,9,
请读程序:#include f(int b[ ], int n){ int i, r=0; for(i=0; i<=n; i++) r=r+b[i];return r; }void main(){ int x, a[]={ 2,3,4,5,6,7,8,9}; x=f(a, 3); printf("%d\n",x); }上面程序的输出结果是__( )____.
A. 20
B. 14
C. 9
D. 5
请读程序:#include f(int b[ ], int n){ int i, r=1; for(i=0; i<=n; i++) r=r*b[i]; return r; }void main(){ int x, a[]={ 2,3,4,5,6,7,8,9}; x=f(a, 3); printf("%d\n",x); }上面程序的输出结果是__( )____.
A. 720
B. 120
C. 24
D. 6