The following options that do not define a 2D array correctly are ( )
A. int a[2][2]={{1},{2}};
B. int a[][2]={1,2,3,4};
C. int a[2][2]={{1},2,3};
D. int a[2][]={{1,2},{3,4}};
查看答案
If there is a definition: int a[2][3];, the correct reference to a array element in the following options is ( ) .
A. a[2][!1]
B. a[2][3]
C. a[0][3]
D. a[1>2][ !1]
You can also point to a function with a pointer variable.
if there isint (*p)(int,int); int max(int,int); then p=max(a,b); is correct.
if there is int (*f)(int);, the following statement is correct ( )
A. f is a pointer variable of base type int.
B. f is a pointer variable to a function with a parameter of type int
C. f is a pointer variable to an int type one-dimensional array
D. f is the name of the function whose return value is an address with a base type of int