Join ExamsbookAnswer :
How would you use the function memmove()?5
Q: How would you use the function memmove()?
- Show AnswerHide Answer
- Workspace
Answer :
Explanation :
#include "mem.h" #include "alloc.h" main() { int area; char *dest; char src[] = "Life is the camera and you are the target" "so keep smiling always"; area = sizeof (src); dest = malloc (area); memmove (dest, src, area); printf("\n%s", dest); printf("\n%s",src); }

