Why the compiler is showing strange output for the strncpy function?

Printable View