编写一个函数fun(),它的功能是:实现两个字符串的连接(不使用库函数strcat)

题型:问答题

问题:

编写一个函数fun(),它的功能是:实现两个字符串的连接(不使用库函数strcat),即把p2所指的字符串连接到p1所指的字符串后。
例如,分别输入下面两个字符串:
FirstString
SecondString
则程序输出:
FirstStringSecondString
注意:部分源程序给出如下。
请勿改动主函数main和其他函数中的任何内容,仅在函数fun的花括号小填入所编写的若干语句。
试题程序:
#include <stdio. h>
#include<conio. h>
void fun (char pi[],char p2[])


main ( )

char s1[80],s2[40];
clrscr ();
printf("Enter s1 and s2:\n");
scanf ("%s%s", s1, s2);
printf ("s1=%s\n", s1);
printf("s2=%s\n",s2);
printf("Invoke fun(s1,s2) :\n");
fun(s1,s2);
printf("After invoking:\n");
printf ("%s\n", s1);

考点:计算机等级考试C语言二级C语言机试
题型:问答题

I was addressing and stamping envelops (信封) when I found there were no stamps left. "I have some in here," my daughter said as she reached for her Bible (圣经).
"It just shows that if you need help, turn to the Bible." I said.
"I also keep my household money (家用钱) in here," she replied. "It’s a good place to hide things. The ones who do open the Bible wouldn’t steal from it, and the ones who would steal never open it.\

The daughter kept her money in the Bible.

A. Right.


B. Wrong.

C. Doesn’t say.

题型:问答题

扁桃体周脓肿的常见致病菌有________、________、________和________等。

题型:问答题

准许溜放,但要限速连挂的车辆是()。

A、乘坐旅客的车辆

B、机械冷藏车

C、轨道起重机

D、装有鲜蛋类的车辆

题型:问答题

在数据流中,由数据元素(或称为分量)组成更复杂的数据的方式有( )。
Ⅰ.顺序 Ⅱ.选择 Ⅲ.可选 Ⅳ.重复

A) Ⅳ,Ⅱ和Ⅲ
B) Ⅰ,Ⅲ和Ⅳ
C) 都是
D) Ⅰ,Ⅱ和Ⅳ

题型:问答题

为什么可以在雪上滑行?()

A.因为滑雪板上有蜡

B.因为部分雪融化成了水

C.因为雪有浮力

更多题库