Apple Interview Question

implement a memcpy function (int *from, int *to, int size)

Interview Answer

Anonymous

Jun 12, 2016

need to ensure while data is copied not to modify some part of the original data before this has been copied to its destination. in other words, need to think of cases in which the source and destination are overlapping each other.