皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下列给定,函数fun()的功能是:将字符串p中所有字符复制到字符串b中,要求每复制3个字符之后插入一个空格。例如,在调用fun()函数之前给字符串a输入ABCDEFGHIJK,调用函数之后,字符串b中的内容则为ABC DEF GHI JK。 请改正的错误,使它能得出正确的结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。 试题程序: include <stdio. h> void fun (char *p, char *b) { int i, k=0; while (*p) /*************found***************/ { i=l; /*************found***************/ while (i<3|| *P) { b[k]=*p; k++; p++; i++; } if (*p) /*************found***************/ { b[k]= ' ';} } b[k]= '/0'; } main ( ) { char a[80],b[80]; printf ('Enter a string: '); gets (a); printf ('The original string: '); puts (a); fun (a,b); printf('/nThe string after insert space: '); puts(b); printf('/n/n '); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】阅读理解。 Is it time to kick Russia out of the BRICs (金砖四国)? If so, it may end up sounding like a famous ball-point pen maker-BIC. An argument is being made that Goldman Sach's famous marketing device (策略...
【简答题】Computer companies· There was a need to develop 34. __________to improve communication between system administrators and colleagues.Hospitals
【单选题】Which of the following statements is true?
A.
Adam Smith was an economist.
B.
Adam Smith wrote some books on economics.
C.
David Hume was the co-author of the Wealth of Nations.
D.
the Wealth of nations was published in 1976.
【判断题】Some administrators in the U.S. believe students need to spend more time in the clssroom instead of on the playground.A. √ B. ╳
A.
正确
B.
错误
【简答题】E Is it time to kick Russia out of the BRICs (金砖四国)? If so, it may end up sounding like a famous ball-point pen maker-BIC. An argument is being made that Goldman Sach’s famous marketing device(策略),the...
【多选题】How does healthcare economics claim that publicly funded healthcare improves the quality and efficiency of personal health care delivery?
A.
Government spending on health is essential for the accessibility and sustainability of healthcare services and programs.
B.
For those people who would otherwise go without care due to lack of financial means, any quality care is an improvement.
C.
Since people perceive universal healthcare as free (if there is no insurance premium or co-payment), they are more likely to seek preventive care which may reduce the disease burden and overall healthcare costs in the long run.
D.
Single-payer systems reduce wastefulness by removing the middle man, i.e. private insurance companies, thus reducing the amount of bureaucracy. In particular, reducing the amount of paperwork that medical professionals have to deal with for insurance claims processing allows them to concentrate more on treating patients.
【单选题】Your company has a main office and a branch office. All branch office administrators are members of a custom management role group.The role group is configured to allow members to manage recipients.Th...
A.
Create a new management role entry for the role group.
B.
Create a management role assignment policy and associate the policy to the role group.
C.
Create a management scope and associate the scope to the role group.Set a recipient filter for the management scope.
D.
Remove the branch office administrators from the Domain Admins group.Add the branch office recipients to the role group.
【单选题】In the long run, the search for sale and _____ ways of generating electricity should be continued
A.
economy
B.
economics
C.
economical
D.
economic
【简答题】Is it time to kick Russia out of the BRICs (金砖四国)? If so, it may end up sounding like a famous ball-point pen maker-BIC. An argument is being made that Goldman Sach’s famous marketing device(策略),the B...
【单选题】某产品的单位产品废水排放量在十二五期间是逐年下降的,已知 2015年比2010年总降幅达80%,则平均年单位产品废水排放量降低幅度是()。
A.
B.
C.
D.
100-
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题