Bloomberg interview question

Difference between memmove() and memcpy() in c. Implement your own memmove() and memcpy() functions.

Interview Answer

Anonymous

20 Jan 2015

void * memcpy(void *destination, const void*source, size_t num) { for(size_t index = 0; index < num; index++) { destination[index] = source[index]; } return destination; }

1