#includef(int b[], int n) { int i, r; r=1; for(i=0; i<=n; i++) r=r*b[i]; return r; } main() { int x, a[]={ 2,3,4,5,6,7,8,9}; x=f(a, 3); printf("%d\n",x); } The output of the above program is ( ).
查看答案
Two dimensional array can store multiple strings.
The wrong description of C language character array is ( )
A. Character arrays can hold strings
B. String in character array can be input and output as a whole
C. The whole character array can be assigned with the assignment operator "=" in the assignment statement, such as char ch[10]; ch="hello!";
D. You cannot compare strings in a character array with relational operators
#includemain() { char s[]={"012xy"}; int i,n=0; for(i=0;s[i]!=0;i++) if(s[i]>='a'&&s[i]<='z') n++; printf("%d\n",n); }The output of the program is ( ).
A. 0
B. 2
C. 3
D. 5