Multiple choice

Which of the following string functions is used to copy first n characters of one string to another string?

  1. strcpy()

  2. strlwr()

  3. strlen()

  4. getc()

  5. strncpy()

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This string function is used to copy first n characters of one string to another string.