The address (the address of the first character of the string) is stored in the character pointer variable.
查看答案
The correct one in the following statement groups is ( )
A. char *s;s="Olympic";
B. char s[7];s="Olympic";
C. char *s;s={"Olympic"};
D. char s[7];s={"Olympic"};
For initialization of two-dimensional array, initial value can be assigned to the array line by line.
It is not allowed to initial some elements of a two-dimensional array.
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}};