C库函数 strcpy()

Python/Java学习交流群:369606713


C库函数 strcpy()

#include <stdio.h>

#include <string.h>



int main () {

   char src[40];

   char dest[100];



   memset(dest, '\0', sizeof(dest));

   strcpy(src, "This is codingdict.com");

   strcpy(dest, src);



   printf("Final copied string : %s\n", dest);



   return(0);

}