fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void){
  5. int a[] = {1,2,3};
  6. int b[3];
  7. int len = sizeof(a)/sizeof(a[0]);
  8. memcpy(b, a, len);
  9. for (int i = 0; i < 3; ++i){
  10. printf("%d ", b[i]);
  11. }
  12. printf("\n");
  13. return 0;
  14.  
  15. }
  16.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
1 134518724 134514050