以下四种说法中,正确的是________。
A: char*a="china";等价于char*a;*a="china";
B: charstr[]={"china"};等价于charstr[10];str[]={"china"};
C: char*s="china";等价于char*s;s="china";
D: chara[4]="abc",b[4]="abc";等价于chara[4]=b[4]="abc";
A: char*a="china";等价于char*a;*a="china";
B: charstr[]={"china"};等价于charstr[10];str[]={"china"};
C: char*s="china";等价于char*s;s="china";
D: chara[4]="abc",b[4]="abc";等价于chara[4]=b[4]="abc";
举一反三
- char a= “china”; 等价于 char a; *a= “china”;()
- char *a= "china"; 等价于 char *a; *a= "china";
- 中国大学MOOC: char *a= china; 等价于 char *a; *a= china;
- 【单选题】下面判断正确的是()。 A、char *s="girl"; 等价于 char *s; *s="girl"; B、char s[10]={"girl"}; 等价于 char s[10]; s[10]={"girl"}; C、char *s="girl"; 等价于 char *s; s="girl"; D、char s[4]= "boy", t[4]= "boy"; 等价于 char s[4]=t[4]= "boy" A. char *s="girl"; 等价于 char *s; *s="girl"; B. char s[10]={"girl"}; 等价于 char s[10]; s[10]={"girl"}; C. char *s="girl"; 等价于 char *s; s="girl"; D. char s[4]= "boy", t[4]= "boy"; 等价于 char s[4]=t[4]= "boy"
- char str[10]={"china"};等价于 char str[10];str[]={"china"};