Strcopy() Code Example


Example: strcpy

/* strcpy example */ #include <stdio.h> #include <string.h>  int main () {   char str1[]="Sample string";   char str2[40];   char str3[40];   strcpy (str2,str1);//str1 copies to str2   strcpy (str3,"copy successful");   printf ("str1: %s\nstr2: %s\nstr3: %s\n",str1,str2,str3);   return 0; }

Comments

Popular posts from this blog

Chemistry - Bond Angles In NH3 And NCl3

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Change The Font Size Of Visual Studio Solution Explorer