STRCPY() Function – C Program

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 *

1 + 9 =


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="">