C array does not need to be defined before use.
查看答案
The correct description of one-dimensional integer array a is ( ).
A. int a(10);
B. int n=10,a[n];
C. int n; scanf(“%d”,&n); int a[n];
D. #define SIZE 10 int a[SIZE]
When an array name is used as a function actual parameter, the value of the first element of the array is passed.
The array name represents the address of the first element of the array.
The function of following function is ( ) .fun(char *a,char *b) { while((*b=*a)!='\0') { a++; b++; } }
Assign the string pointed by a to the space pointed by b
B. Make pointer b point to the string poited by a
Compare the string pointed by a with the string pointed by b
D. Check if there is '\0 'in the string indicated by a and b