strcpy() Function in C Programming Language

By: Editorial Staff | Last Updated: | In: 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

Share this post!


About: Editorial Staff

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