以下程序的输出结果是___( )___.#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
请读程序:#includef(char s[ ]){ int i,j; i=0;j=0; while( s[j]!= '\0') j++; return (j-i); }void main(){printf("%d\n",f("ABCDEF"));}上面程序的输出结果是___( )___.
A. 0
B. 6
C. 7
D. 8