Top
/
Algorithms on strings
/
Answer-31-2
Answer to Question 31-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.