Q:
How would you use the function memmove()?
Answer
#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);
}
View answer
Workspace
Report Error
Discuss