fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main ()
  5. {
  6. char str[] = "memmove can be very useful......";
  7. //memmove (str+20,str+15,11);
  8. memcpy(str+20,str+15,11); //Simply used memcpy instead of memmove
  9. puts (str);
  10. return 0;
  11. }
Success #stdin #stdout 0s 1788KB
stdin
Standard input is empty
stdout
memmove can be very very very v.