此题为判断题(对,错)。
第2题
以下不能正确进行字符串赋初值的语句是
A.char str[5]="good!";
B.char str[]="good!";
C.char*srt="good!";
D.char str[5]={ 'g', 'o', 'o', 'd'};
第3题
以下不能正确进行字符串赋初值的语句是
A.char str[5]=“good!”;
B.char str[]=“good!”;
C.char *str=“good!”;
D.char str[5]={'g','o','o','d'};
第4题
以下能正确进行字符串赋值、赋初值的语句是______。
A.char s[5]:{'a','e','i','o','u'};
B.char *s; s="good";
C.char s[5]="good";
D.char s[5]; s="good";
第5题
A.char str[5]="good!";
B.char str[]="good!";
C.char*str="good!";
D.char str[5]={'g','o','o','d'};
第6题
A.char str[5]="good!";
B.char str[]="good!";
C.char*str="good!";
D.char str[5]={'g','o','o','d'};
第7题
A.char str[ ]= “good!”;
B.char str[5]= “good!”;
C.char *str=”good!”;
D.char str[5]={ ‘g’,’o’,’o’,’d’};3
第8题
A.chars[4]="shop";
B.chars="shop";
C.char*s="shop";
D.chars[]={'s','g','o','p','\0';
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!