填空题
以下函数sstrcat的功能是实现字符串的连接,即将t所指字符串复制到s所指字符串的尾部。例如:,所指字符串为abed,t所指字符串为efgh,调用函数sstrcat后s所指字符串为 abcdefgh。请填空。
#inehde <stdio.h>
#include <string.h>
void sstuat(char * 9,char *t)
int n;
n = strlen (s);
while(*(s+n) = )s++; t++;
【参考答案】
*t
热门
试题
填空题
以下程序中,fun函数的功能是求3行4列二维数组每行元素中的最大值。请填空。#include <stdio, h>void fun(int,int,int( * )[4] ,int* );main ( ) int a[3] [4] = 12,41,36,28, 19,33,15,27, 3,27,19,1 ,b[3] ,i; fun(3,4,a,b); for(i =0;i <3;i ++ ) printf( %4d ,b[i] ); prinff( n );void fun(int m,int n,int ar[] [4] ,int* br) int i,j,x; for(i =0;i< m;i ++ ) x = ar[i] [0] ;’ for(j = 0;j < n;j ++ ) if(x < ar[i] [j] ) x = ar[i] [j]; =x;