mardi 4 août 2015

Efficient way to copying array of pointer to another pointer

How to copy array of pointer to another pointer.

My approach this way

int *ptr2[(i-1)*100];
int *ptr1;

ptr1=&ptr2[(i-1)*100];

What is the efficient way to copy so that it takes less cpu cycle.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire