adspace


What is the difference between the functions memmove() and memcpy()?

Answer Posted / Jyoti Chaudhary

Both memmove() and memcpy() are used to copy memory blocks in C++. However, their behavior differs when the source and destination memory blocks overlap. memmove() can handle this case by ensuring that memory is copied safely, while memcpy() does not check for overlapping blocks, which might lead to undefined behavior.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What character terminates all character array strings a) b) . c) END

1402


What is the latest version on c++?

1212


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1168


daily Routine of father

1488


Can union be self referenced?

1271