Question d’entretien chez NVIDIA

Implement memcpy.

Réponses aux questions d'entretien

Utilisateur anonyme

9 juill. 2013

you should care about how src and dest are overlapped, and copy from left or from right.

Utilisateur anonyme

31 mai 2015

void memcpy (void *dest, void *src, size_t length) { int *currSrc = src; int *currDest = dest; chat *charSrc, *chardst; size_t nTimes = length / sizeof(int) for(int i=0; i

1

Utilisateur anonyme

10 juill. 2018

void my_memcpy(void *dst, void *src, int size) { for(int i=0; i

2

Utilisateur anonyme

28 avr. 2012

void memcpy (int* dest, int* src, int length) { char* currSrc = (char*)src; char* currDest = (char*)dest; for(int i=0; i