单项选择题
有以下程序
#include<stdio.h>
main()
char ch[]="uvwxyz",*pc;
pc=ch;
printf("%c\n",*(pc+5));
程序运行后的输出结果是______。
A.z
B.0
C.元素ch[5]的地址
D.字符y的地址
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
单项选择题
若有以下程序段 char str[4][12]= aa , bbb , ccccc , d ,*strp[4]; int i; for(i=0;i<4;i++)strp[i]=str[i]; 不能正确引用字符串的选项是______。
A.strp
B.str[0]
C.strp[3]
D.*strp
点击查看答案&解析
单项选择题
以下不能将s所指字符串正确复制到t所指存储空间的是______。
A.do*t++=*s++;while(*s);
B.for(i=0;t[i]=s[i];i++);
C.while(*t=*s)t++;s++;
D.for(i=0,j=0;t[i++]=s[j++];);
点击查看答案&解析
相关试题
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
有以下程序 #include<stdio.h> main...
以下程序依次把从终端输入的字符存放到f文...