title: memcpy() between two different pointers
body: <p>Using memcpy(), I want to copy <em>part of</em> an array to another one where the source array is a double-pointer array. Is there a workaround to implement such a copying process <strong>without</strong> changing the double pointer?</p>
  
  <pre><code>int **p;
  p= malloc(sizeof(int *));
  p= malloc(5 * sizeof(int));
  
  int *arr;
  arr= malloc(5 * sizeof(int));
  
  for(i = 0; i &lt; 5; i++){
    p[i] = 1;
  }
  
  memcpy(arr, (2+p) , 3*sizeof(int)); // I want to start copying 3 elements starting from the third position of the src.
  </code></pre>