Bloomberg Interview Question

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

Interview Answer

Anonymous

Jan 20, 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