STRCPY() Function – C Program

In previous C Language Program post we had discussed about String in Reverse Order and Toggle Case in String and Calculate Length of String and Reverse String and Concatenate String and Compare String and STRCAM Function and STRCAT Function and STRLEN Function.

STRCPY() Function – C Program

Write a C Program to copy contains of one string to another string.

STRCPY() Function :- The STRCPY() function used to copy contains of one string to another string in c language.

The Syntax of STRCPY() Function :

strcpy (str1, str2) – It copies contains of str2 into str1.
strcpy(str2, str1) – It copies contains of str1 into str2.

Example of STRCPY() Function C Program

The output of STRCPY Function C Program is :


Leave a Reply

Your email address will not be published. Required fields are marked *

5 + 4 =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">