Top
/
Algorithms on strings
/
Answer-32-2
Answer to Question 32-2
A null-terminated string of length
n
needs
n
+1 bytes, since it needs a place to store the null character. CopyString does not allocate a large enough array.