橘子味的心
标题:C库函数 strcat()

C库函数 strcat()

#include <stdio.h>

#include <string.h>



int main () {

   char src[50], dest[50];



   strcpy(src,  "This is source");

   strcpy(dest, "This is destination");



   strcat(dest, src);

   printf("Final destination string : |%s|", dest);



   return(0);

}

目录

分类