Using memcpy to copy a range of elements from an array

Viewed 40383

Say we have two arrays:

double *matrix=new double[100];
double *array=new double[10];

And we want to copy 10 elements from matrix[80:89] to array using memcpy.

Any quick solutions?

3 Answers
Related