strcpy() Function in C Programming Language

Editorial Staff - - C Programming Tutorial


In this tutorial, we are going to share about the strcpy() function in c programming language. By using the strcpy() function, you can copy the one string to another string.

Here is the code syntax to use the strcpy() function in the c programs.

strcpy() function example with the output

Program Output

String str1: Apple
String str2: Banana
String str1: Banana


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari