柠檬试题库
search
首页
计算机
公务员
驾照
关于
share
有以下程序 #include
void fun1(char *p) { char *q; q=p; while(*q!='\0') { (*q)++; q++; } } main() { char a[]={"Program"}, *p; p=&a[3]; fun1(p); printf("%s\n",a); } 程序执行后的输出结果是
A.Prphsbn
B.Prohsbn
C.Progsbn
D.Program
热度🔥1,036
参考答案:B
解析:
【解析】(*q)++是q所指的字符加1,q++就是指针移到下一个字符。因此B选项正确。
复制题目向AI提问
content_copy
content_copy
扫码免费计算机二级刷题
2025年计算机等级考试题库
推荐
结构化程序设计的基本原则不包括( )。
如果在一台主机的Windows环境下执行Ping命令得到下列信息: Pinging www.nankai.edu.cn [202.113.16.33] with 32 bytes of data: Reply from 202.113.16.33: bytes=32 time<1ms TTL=128 Reply from 202.113.16.33: bytes=32 time<1ms TTL=128 Reply from 202.113.16.33: bytes=32 time<1ms TTL=128 Reply from 202.113.16.33: bytes=32 time<1ms TTL=128 Ping statistics for 202.113.16.33: Packets: Sent = 4, Received = 4, Lost = 0(0% loss), Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms 那么下列结论中无法确定的是()。
有如图所示的两个关系R1和R2 R1 R2 WXY abc bbf cad XYZ bcd adb efg R5是下列哪一项关系操作的结果? R5 X Y Z b c d a d b
在Word功能区中,拥有的选项卡分别是( )。
标签
二级C语言
char
program
fun
fun1