Domanda di colloquio di NVIDIA

Implement memcpy.

Risposte di colloquio

Anonimo

9 lug 2013

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

Anonimo

31 mag 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

Anonimo

10 lug 2018

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

2

Anonimo

28 apr 2012

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