meili 发表于 2022-10-27 16:08:12

【求解C语言试题.13、设有staticcharstr[]=quot;Beijingquot;;则执行printf(quot;%dnquot;,strlen(strcpy(str,quot;chinaquot;)));后的输出结果为().A.5B.7C.12D.2023、设有如下程序:#include】

<p>问题:【求解C语言试题.13、设有staticcharstr[]=quot;Beijingquot;;则执行printf(quot;%dnquot;,strlen(strcpy(str,quot;chinaquot;)));后的输出结果为().A.5B.7C.12D.2023、设有如下程序:#include】
<p>答案:↓↓↓<p class="nav-title mt10" style="border-top:1px solid #ccc;padding-top: 10px;">陈兴文的回答:<div class="content-b">网友采纳  A,字符串在复制时连同''一起复制,str的有效字符变成"china',长度为5;B,k是一个二级指针,两次通过*间接寻址,得到最终指向的内容i,答案为100;B,因为a>b为假,所以m被赋值为0,&&前的表达式如为假,则执行结束,...
页: [1]
查看完整版本: 【求解C语言试题.13、设有staticcharstr[]=quot;Beijingquot;;则执行printf(quot;%dnquot;,strlen(strcpy(str,quot;chinaquot;)));后的输出结果为().A.5B.7C.12D.2023、设有如下程序:#include】