C++
Programming and Technical
Programming
Technical
What is the difference between the functions memmove() and
memcpy()?
Read Solution (Total 3)
-
- With memcpy, the destination cannot overlap the source at all. With memmove it can.
- 10 years agoHelpfull: Yes(1) No(0)
- Memmove() functions are those functions which are used for moving changes in the memory,
whereas memcpy() are those which do the copying of memory. - 10 years agoHelpfull: Yes(0) No(0)
- In memmove() the source memory of specific size is copied into buffer and then moved to destination.As a result, overlapping is done successfully.
In memcpy() there is no extra buffer taken for source memory. The copying is done directly on the memory. As a result, overlapping may give unexpected results. - 10 years agoHelpfull: Yes(0) No(0)
C++ Other Question