Doubt at 8:51 . Please check description

https://ide.codingblocks.com/s/289560 . Please check line 57, 58. Changing only one character works like shallow copy. But changing the entire char array works like deep copy. Why does it happen?

Hi can you please explain ur doubt a little bit more.