fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int main ()
  5. {
  6. int a[5] = {0,1,2,3,4};
  7. int b[5] = {};
  8.  
  9. memcpy(b, a, 20);
  10. printf("dest = %d\n", b[2]);
  11.  
  12. return(0);
  13. }
Success #stdin #stdout 0s 5312KB
stdin
Standard input is empty
stdout
dest = 2