How would you use the function memmove()?5
928 5b5cc7dce4d2b419777515b4
Q: How would you use the function memmove()?
- Show Answer
- Workspace
- Discuss
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); }
Similar Questions
Since Nithya and Suganya exchange places, so Rita’s new position is the same as Monika’s earlier position. This position is 17th from the right and 10th from the left. Therefore Number of girls in the row = (16 + 1 + 9) = 26.