皮皮学,免费搜题
登录
搜题
【单选题】
下面程序的功能是实现字符串逆序存放。程序运行结果如下:Input a string:ABCDEFGHI↙Inversed results:IHGFEDCBA按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。#include #include #defineN80voidInverse(char*pStr);intmain(){chara[N];printf("Inputastring:");gets(a);Inverse(a);printf("Inversedresults:%s\n",a);return0;}/*函数功能:实现将字符数组中的字符串逆序存放*/voidInverse(____________){intlen;chartemp;char*pStart;/*指针变量pStart指向字符串的第一个字符*/char*pEnd;/*指针变量pEnd指向字符串的最后一个字符*/len=strlen(pStr);/*求出字符串长度*/for(pStart=pStr,___________;pStart
A.
第16行:   char *pStr 第23行:   pEnd=pStr+len-1 pEnd-- 第26行:   *pStart = *pEnd
B.
第16行:   char pStr 第23行:   pEnd=pStr+len pEnd-- 第26行:   *pStart = *pEnd
C.
第16行:  char *pStr 第23行:  pEnd=pStr+len-1 pEnd++ 第26行:   pStart = pEnd
D.
第16行:  char pStr 第23行:  pEnd=pStr+len+1 pEnd++ 第26行:   *pStart = *pEnd
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【多选题】悬架一般由 、 和 等三部分组成。
A.
弹性元件
B.
减震器
C.
导向机构
【单选题】Why does Mr. Cotton call?
A.
He calls to cancel his reservation.
B.
He calls to change his ticket.
C.
He calls to check his ticket.
D.
He calls to cancel his reservation and make another.
【单选题】It's said that he will __________his uncle's business when he is mature enough to deal with the public relations. [     ]
A.
take over
B.
think over
C.
hand over
D.
go over
【简答题】A.He calls to cancel his reservation. B.He calls to change his ticket. C.He calls to check his ticket. D.He calls to cancel his reservation and make another.
【单选题】The author was surprised to hear the calls to prayer because ______.
A.
he was far away from the city, yet he could hear them clearly
B.
he did not think there would be any calls
C.
the calls came from the mosques
D.
the calls were no different over loud-speakers
【单选题】按照《规范》,在船舶纵向强度校核时,应进行静水剪切力校核的条件是( )。
A.
船长≧90米,且装载不均匀
B.
船长≧90米,且具有两道纵舱壁
C.
船长小于90米,且装载不均匀或具有两道纵舱壁
D.
A或B
【单选题】he calls at every house in the street he______ everyone
A.
shouts at
B.
calls
C.
cried out at
D.
visits
【简答题】悬架一般由( ) 、 ( )和( ) 等三部分组成。
【简答题】悬架一般由 、减振器和导向机构 等三部分组成。
【单选题】He calls at every house in the street. He everyone.
A.
shouts at
B.
calls
C.
cries out at
D.
visits
相关题目: