When I try to access memory addresses which are not within the scope of string s, here are some result as below.
The address 9, 10 and 11 shown the same char output on s[4], s[5], and s[6] even through they are from different codes.
As for accessing location outside of array, it will result as below.
There is a random – 354… and -190…. It could be know as segmentation fault.