单项选择题
以下程序段中,不能正确赋字符串(编译时系统会提示错误)的是:
A.char s[10]="abcdefg";
B.char t[]="abcdefg",*s=t;
C.char s[10];s="abcdefg";
D.char s[10];strcpy(s,"abcdefg");
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
有以下程序 int a=2; int f(int*
A.
&n
点击查看答案&解析
单项选择题
有以下定义 #include <stdio.h> char a[10],*b=a; 不能给a数组输入字符串的语句是
A.
B.gets(a[0]);
C.gets(&a[0]);
D.ge
点击查看答案&解析
相关试题
有以下程序 #include <stdio.h> mai...
有以下程序 #include <stringh> main...
下面程序的功能是输出以下形式的金字塔图案...
有以下程序 int f(int b[][4]) ...
有以下程序(提示:程序中fseek(fp,-2L...