下面程序的功能是用字符指针变量作函数参数编程实现字符串连接函数strcat()的功能 将字符串srcSt

大学网课 已帮助 人

下面程序的功能是用字符指针变量作函数参数编程实现字符串连接函数strcat()的功能,将字符串srcStr连接到字符串dstStr的尾部。 程序的运行结果如下: Please enter the source string:abcd↙ Please enter the other string:efgh↙ The concat is: abcdefgh 按要求在空白处填写适当的表达式或语句,使程序完整并符合题目要求。 #include <stdio.h> void MyStrcat(char *dstStr, char *srcStr); int main() { char s[80]; //源字符串 char t[80]; //待连接字符串 printf("Please enter the source string: n"); gets(s); printf("Please enter the other string: "); gets(t); //输入字符串 MySt

A.第19行: *dstStr != "0" 第25行: *dstStr = * srcStr 第29行: *dstStr = "0"

B.第19行: dstStr != "0" 第25行: dstStr = srcStr 第29行: *dstStr = "0"

C.第19行: *dstStr == "0" 第25行: *dstStr = * srcStr 第29行: *dstStr = "n"

D.第19行: dstStr == "0" 第25行: dstStr = srcStr 第29行: *dstStr = "n"

下面程序的功能是用字符指针变量作函数参数编程实现字符串连接函数strcat()的功能 将字符串srcSt

热搜:下面程序的功能是输出数组s中最大元素