1. 正确选项:B
答案:1
解析:程序统计字符串 "LINK_UP" 中字符 'U' 的个数,为 1。\U 在题意中应理解为字符 U。
2. 正确选项:D
1、光模块状态检测程序中,以下代码的运行结果是()。
#include <stdio.h>
int main() {
char status[20] = "LINK_UP";
char *p = status;
int count = 0;
while (*p != '\0') {
if (*p == '\U') count++;
Scan the QR code below with WeChat to sign in
First-time scan will create your account automatically
请使用微信扫描下方二维码完成注册