How copy part of int array to another int array in C/C++?
<p>please can you help me?
How can I copy part of one int array to another int array?</p>

<p>Example:</p>

<pre><code>typedef struct part {
  int * array;
} PART;

int array[] = {1,2,3,4,5,6,7,8,9};
PART out[] = new PART[3];

for (int i = 0; i &lt; 3; i++)
{
  memcpy((char *)array[i * 3], (char *)out[i].array, 3 * sizeof(int));
}
</code></pre>

<p>But this don't working... :(</p>
