The following code is valid in C:
char *message;
strcpy(message,"abcdef");
char *message;
strcpy(message,"abcdef");
举一反三
- 【10.5】下面程序段的运行结果是( )[br][/br]char a[7]="abcdef";[br][/br]char b[4]="ABC";[br][/br]strcpy(a,b);[br][/br]printf("%c",a[5]); A: 空格 B: \0 C: e D: f
- 中国大学MOOC: We can report an emergency case by sending a text message to 12110. Which of the text message is valid?
- Listen to a phone message and complete the following note._ Telephone Message
- Which three message types are valid PIMv2 message types?() A: Register B: Register-Stop C: Join/Prune D: Reject E: Register-Prune F: Register-Join
- 下列能正确进行字符串赋值操作的语句是()。 A: char<br/>s[5]={"abcdef"}; B: char<br/>s[5]={ ′a′, ′b′, ′c′, ′d′,<br/>′e′, ′f′}; C: char<br/>*s; s="abcdef" ; D: char<br/>*s; scanf ("%s",s );