单选题
46.以下哪个字符在字符串输出时能起到换行的作用:
A
'\n'
B
'\0'
C
'\t'
D
'\a'
答案解析
正确答案:A
解析:
生动例子:想象一下你在写一封信给朋友,如果你想在信中换行,可以在需要换行的地方加上'\n',这样就能让信件更加清晰易读,就像下面这样:
Dear friend,
I hope this letter finds you well.\n
I wanted to tell you about my recent trip.\n
I had such a great time exploring new places.\n
Looking forward to hearing from you soon.\n
Dear friend,
I hope this letter finds you well.\n
I wanted to tell you about my recent trip.\n
I had such a great time exploring new places.\n
Looking forward to hearing from you soon.\n
题目纠错
