Join Examsbook
929 0

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); }

Are you sure

  Report Error

Please Enter Message
Error Reported Successfully