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

【麻烦回答以下几道题执行下列程序段后,*p的值是char*p=quot;asdfquot;;printf(quot;%cquot;,*(p+strlen(p)));(p+strlen(p)是什么意思strlen不是测试字符串长度么有以下程序#includemain(){chars[]=quot;159quot;,*p;p=s;printf(quot;】

<p>问题:【麻烦回答以下几道题执行下列程序段后,*p的值是char*p=quot;asdfquot;;printf(quot;%cquot;,*(p+strlen(p)));(p+strlen(p)是什么意思strlen不是测试字符串长度么有以下程序#includemain(){chars[]=quot;159quot;,*p;p=s;printf(quot;】
<p>答案:↓↓↓<p class="nav-title mt10" style="border-top:1px solid #ccc;padding-top: 10px;">孙瀛的回答:<div class="content-b">网友采纳  执行下列程序段后,*p的值是char*p="asdf";printf("%c",*(p+strlen(p)));答案是a(p+strlen(p)是什么意思strlen不是测试字符串长度么答案为什么是a啊?答案是错误的,应该显示空格.strlen(p)是返回字符...
页: [1]
查看完整版本: 【麻烦回答以下几道题执行下列程序段后,*p的值是char*p=quot;asdfquot;;printf(quot;%cquot;,*(p+strlen(p)));(p+strlen(p)是什么意思strlen不是测试字符串长度么有以下程序#includemain(){chars[]=quot;159quot;,*p;p=s;printf(quot;】