The function ________ is used to copy one string to another in C.

  • compare()
  • length()
  • strcpy()
  • swap()
In C, the function strcpy() is used to copy one string to another. It takes two string arguments and copies the contents of the source string to the destination string until it encounters a null character.
Add your answer
Loading...

Leave a comment

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