Easy learning with example program codes

C strcpy()

C strcpy():

String Functions are the built-in functions provided by C to operate and manipulate a string. C strcpy() function copies a string from source to destination.


strcpy(destination, source)


#include <string.h>  
#include <stdbool.h>
void main()
char str1[10] = "Hello C.";  
char str2[10];
strcpy(str2, str1);


Hello C.
Posted in C   
Sign Up/ Sign In
Ask a Question

Industrial Training

We offers Placement Oriented Training on Java, Spring, JSF, Hibernate, PHP, AngularJS, Angular 4, PLSQL, Oracle BI Publisher etc. We also provides Online training, please mail us at


We also provides the Development services for Website Development , Java Development, PHP Development, Android App Development etc. You can contact us on

Copyright © 2018 CodesJava Protection Status SiteMap Reference: Java Wiki