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 *

Captcha *