Multiple choice

Which of following functions is the correct choice for moving blocks of binary data which are having arbitrary size and position in memory?

  1. memcpy()

  2. memset()

  3. strncpy()

  4. strcpy()

  5. memmove()

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

The memmove() function safely copies a specified number of bytes from a source memory area to a destination memory area, correctly handling overlapping memory regions of arbitrary size.