皮皮学,免费搜题
登录
搜题
【简答题】
请补充函数fun(char *s),该函数的功能是把字符串中的内容逆置。 例如:字符串中原有的字符串为abcde,则调用该函数后,串中的内容变为edcba。 注意;部分源程序给出如下。 请勿改动主函数main和其他函数中的任何内容,仅在函数fun()的横线上填入所编写的若干表达式或语句。 试题程序: $include<string.h> include<conio.h> include<stdio.h> define N 81 void fun(char*s) { int i=0,t,n=strlen(s); for(;【 】;i++) { t=*(s+i); 【 】; 【 】; } } main() { char a[N]; clrscr(); printf('Enter a string:'); gets(a); printf('The original string is:'); puts(a); fun(a); printf('/n'); printf('The string after modified:'); puts(a); }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】下列业务中非注册会计师不得承办的有:
A.
内部控制鉴证
B.
设计财务会计制度
C.
税务服务
D.
财务报表审计业务
【简答题】完形填空 A large cat arrived at a farm where many mice lived.None of them dared go outside for fear of being 1 by the cat. The mice decided to hold a 2 to find a way of stopping themselves from being in_ ...
【判断题】发生这样的事情绝非偶然。
A.
正确
B.
错误
【多选题】下列果实中属于肉质果的有 。
A.
核果
B.
梨果
C.
干果
D.
浆果
E.
分果
【简答题】完形填空 A large cat arrived at a farm where many mice lived. None of them dared go outside for fear of being 1 by the cat. The mice decided to hold a 2 to find a way of stopping themselves from being in ...
【单选题】下列果实中属于核果的是( )
A.
葡萄
B.
樱桃
C.
向日葵
D.
橘子
【简答题】II . 七选五 (每小题 2 分,共 10 分 ) Cats in ancient Egypt Many of us love cats. They are beautiful, soft, clever and loving. The ancient Egyptians ( 埃及人 ) considered cats, also known as Mau, to be very importa...
【单选题】下列果实中属于肉质果的是()
A.
荚果
B.
蒴果
C.
蓇葖果
D.
核果
E.
角果
【简答题】A pet is an animal tamed and kept as a _____1______ and treated with ____2_______. The range of animals kept by people as pets today is very ____3_______. For example, rabbits, mice, _____4______, pig...
【单选题】下列果实中属于核果的是
A.
黄瓜
B.
橘子
C.
D.
辣椒
相关题目: