字符串 "8+a=b\n\r" 的长度为

admin2020-06-29  34

问题 字符串 "8+a=b\n\r" 的长度为

选项 A、14
B、7
C、9
D、16

答案B

解析 本题考查字符常量中转义字符常量,\n,\r为转义字符,只占一个字节,所以该字符串的长度为7。选项B正确。
转载请注明原文地址:https://kaotiyun.com/show/k78p777K
0

随机试题
最新回复(0)