皮皮学,免费搜题
登录
logo - 刷刷题
搜题
【简答题】
下列给定,函数fun()的功能是逐个比较a,b两个字符串对应位置中的字符,把ASCII值小或相等的字符依次存放到c数组中,形成一个新的字符串。 例如:a中的字符串为fshADfg,b中的字符串为sdAEdi,则c中的字符串应为fdAADf。 请改正的错误,使它能得到正确结果。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。 试题程序: include <stdio.h> include <strinq.h> void fun(char *p,char *q,char *c) {int k=0; while(*p || *q) /**********found**************/ { if (*p<=*q) c[k]=*q; else c[k]:*p; if(*p) p++; if(*q)q++; /**+**********found**************/ k++ } } main() {char a[10]='fshADfg',b[10]='sdAEdi', c[80]={'/0'); fun(a,b,c); printf('The string a:');puts(a); printf('The string b:');puts(b); printf('The result:');puts(c); }
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
参考答案:
举一反三
【简答题】25圆柱的认识练习题.doc
【单选题】根据属地管辖权原则,所谓在中国领域内犯罪是指( )。
A.
犯罪的行为和结果均发生在中国领域内
B.
犯罪的行为人和受害人均在中国领域内
C.
犯罪的行为或者结果有一项发生在中国领域内
D.
犯罪的行为人或者受害人有一方在中国领域内
【单选题】听力原文:Because of the current war in the Middle East, the price of fuel increases and the whole world has to suffer. But we don't want less. (25)
A.
Because of the Middle East War every body has to suffer the increase price of the fuel.
B.
Because of the Middle East War we want less fuel everyday.
C.
Because of the Middle East War the world depends on having less fuel.
D.
Because of the Middle East War we don't want less fuel for the world.
【单选题】Have you heard _____ news? The price of _____ petrol is going up again! [     ]
A.
the; the
B.
/; the
C.
the; /
D.
/; /
【单选题】根据属地管辖权原则,所谓在中国领域内犯罪,是指()
A.
犯罪的行为和结果均发生在中国领域内
B.
犯罪的行为人和受害人均在中国领域内有居所
C.
犯罪的行为或者结果有一项发生在中国领域内
D.
犯罪的行为人或者受害人有一方在中国领域有居所
【多选题】气门与气门座之间气密性的检验方法有()
A.
渗油法
B.
划线法
C.
拍打法
D.
专用仪器法
【单选题】根据属地管辖权原则,所谓在中国领域内犯罪,是指()
A.
犯罪的行为和结果均发生在中国领域内
B.
犯罪的行为人和受害人均在中国领域内有居所
C.
犯罪的行为或者结果有一项发生在中国领域内
D.
犯罪的行为人或者受害人有一方在中国领域内有居断
【简答题】Over the weekend, a shoe store sold 1/3 of the shoes in its stock. The average price of the shoes sold was $60 per pair. What was the total revenue from shoe sales over the weekend for this shoe store...
【单选题】The sum of money I have already had is not ________ enough at all for the price of the machine that I want to buy.
A.
almost
B.
mostly
C.
nearly
D.
near
【简答题】A.The receipt of the clothes. B.The birthday present. C.The size report. D.The price of the sweater.
相关题目:
参考解析:
知识点:
题目纠错 0
发布
创建自己的小题库 - 刷刷题