strncpy()
dest
n
src
ordered
"1 4 3 2 5"
can u give me a hint of how to solve this ,i had done but test returned it took more time
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
strncpy()
, it is a terrible function. It does not nul-terminatedest
if there is no nul byte among the firstn
bytes ofsrc
. As a resultordered
is not nul-terminated in your code"1 4 3 2 5"
can u give me a hint of how to solve this ,i had done but test returned it took more time
This comment is hidden because it contains spoiler information about the solution