C
Programming and Technical
Programming
Definition
what is the difference between memmove() and memcopy() ?
Read Solution (Total 3)
-
- 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. - 11 years agoHelpfull: Yes(8) No(0)
- Hey @rajat i have some confusion, Both are doing same work right ?
so exactly what happen in memcpy() if source string is not overlapping destionation string. it means that source address is not copied into destination right ? wheres memmove() function source address is copied to destination....?
so plz wheres the problem occurs give me with example. - 10 years agoHelpfull: Yes(0) No(0)
- memmove means to remove from the first file permanently and copy in the other file. memcopy stores the document in both the files
- 9 years agoHelpfull: Yes(0) No(0)
C Other Question