皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【单选题】
下面程序的功能是在字符串每个字符间插入一个空格。程序的运行结果如下:Input a string:Howareyou↙Insert results:H o w a r e y o u按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。#include #include #defineN100voidInsert(chars[]);intmain(){charstr[N];printf("Inputastring:");gets(str);Insert(str);printf("Insertresults:%s\n",str);return0;}voidInsert(chars[]){chart[N];inti,j;____________;for(i=0,j=0;____________;i++,j++){________;j++;________;}s[j]='\0';/*在字符串s的末尾添加字符串结束标志*/}
A.
第19行:strcpy(t, s) 第20行:t[i]='\0' 第22行:t[j] = s[i] 第24行:s[j] = '\0 '
B.
第19行:t=s; 第20行:t[i]!='0' 第22行:s[i] = t[j] 第24行:s[j] = ' '
C.
第19行:strcpy(t, s) 第20行:t[i]!='\0' 第22行:s[j] = t[i] 第24行:s[j] = ' '
D.
第19行:strcpy(s, t) 第20行:t[i]=='0' 第22行:t[i] = s[j] 第24行:s[j] = '0 '
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【单选题】Which of the following component of total economic value of a resource is correctly identified?
A.
Use value reflects the common observation that people are more than willing to pay for improving or preserving resources that they will never use.
B.
Option value is the direct use of the environmental resource.
C.
Use value reflects the value people place on a future ability to use the environment.
D.
A pure nonuse value is also called existence value.
【简答题】将当前图表标题命名为季度报表。
【单选题】The ______ research revealed the structure of the protein component, which has never been known by people before.
A.
outbreaking
B.
groundbreaking
C.
happening
D.
offering
【单选题】The nurse in a maternity unit is providing emotional support to a patient and her significant other who are preparing to be discharged from the hospital after the birth of a dead fetus. Which statemen...
A.
"We want to attend a support group."
B.
"We never want to try to have a baby again."
C.
"We are going to try to adopt a child immediately."
D.
"We are okay, and we are going to try to have another baby immediately."
【简答题】请为工作表Sheet1重命名为“学生成绩表”。
【简答题】任务型阅读。请根据短文内容,完成下列任务。 When you are worried or stressed, what do you do about it? These days, a student website in Foshan opened for kids to let their anger and stress out. Students can write whatever ...
【简答题】Traditional residences tend to conform to their environment and to become integrated with it. They are expelled to blend with the surrounding rivers and mountains, thus complementing but never spoilin...
【简答题】(3)将Sheet1更名为“教育开支比较表”。
【简答题】中国将月球探测工程命名为()工程。
【单选题】Your decision about one component of your financial plan can affect all other components. Which statement is true?
A.
The amount of insurance you choose to carry has no effect on your investing decisions.
B.
There will never be any trade-offs to consider when making decisions about your financial plan.
C.
If you make poor investment decisions, you may have to work longer than planned.
D.
You should contribute all of your extra money to your retirement account even if it means you don't have money available for products and services today.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题