64. Pointer-ii

Question.5

A developer writes a generic buffer copy function:

void copy(void *dst, void *src, int n) {
   for (int i = 0; i < n; i++)
       dst[i] = src[i];
}

Will this compile and work correctly?

Need Help? Refer to the Quick Guide below

Select Answer

Restart quiz!