+ 2
name[7] is the terminate character '\0'. The character is used to terminate the string and it's automatically placed at the end of the string.
You replace it with 'K'. The program then cannot terminate the string even the string has ended, so it keeps reading the memory further, which is unpredictable and dangerous, until the value is 0, which is '\0'.



