fork download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. int main(void) {
  5. int *arr1 = (int*)malloc(sizeof(int)*3);
  6. int *arr2 = (int*)malloc(sizeof(int)*3);
  7. arr2 = arr1;
  8. int i;
  9. for( i = 0; i < 3; i++ )
  10. {
  11. printf( "%X %X\n", arr1+i, arr2+i );
  12. }
  13. free(arr2);
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 2244KB
stdin
Standard input is empty
stdout
80A6008 80A6008
80A600C 80A600C
80A6010 80A6010