I have two questions.
Do realloc()
and memcpy()
copy the entries in an array to another in a way faster than just iterating on eac
As other said, it won't be faster than O(n), but memory systems often have a preferred block size, and also it's possible to, say, write the size of a cache line at a time.