将小写字母n赋值给字符变量one_char,正确的操作是 ______。
A: one_char='n'
B: one_char="n"
C: one_char=110
D: one_char='N'
A: one_char='n'
B: one_char="n"
C: one_char=110
D: one_char='N'
举一反三
- 将小写字母n 赋值给字符变量one_char,正确的操作是
- 有以下程序,程序运行后的输出结果是_____ #include int main() { char str[ ][20]={"One*World", "One*Dream!"}; printf("%s",str[1]); printf("%c\n",str[0]+6); } A: One*Dream!World B: One*WorldOne*Dream C: One One D: One*Dream!r
- 有以下程序,程序运行后的输出结果是( ) #include int main() { char str[ ][20]={"One*World", "One*Dream!"}; printf("%s",str[1]); printf("%c\n",*(str[0]+4)); } A: One*Dream!World B: One*World!W C: One One D: OO
- 有以下程序,程序运行后的输出结果是( ) #include int main() { char str[ ][20]={"One*World", "One*Dream!"}; printf("%s",str[1]); printf("%s\n",str[0]+4); } A: One*Dream!World B: One*WorldOne*Dream C: One One D: OO
- 定义字符型变量m和定义整型变量n的语句是(); A: char m; B: char m C: int n; D: int n