When I try to access memory addresses which are not within the scope of string s, here are some result as below.
![](http://consxious.com/wp-content/uploads/2022/03/image-3.png)
![](http://consxious.com/wp-content/uploads/2022/03/image-4.png)
![](http://consxious.com/wp-content/uploads/2022/03/image-5.png)
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.
![](http://consxious.com/wp-content/uploads/2022/03/image-6.png)
![](http://consxious.com/wp-content/uploads/2022/03/image-7.png)
There is a random – 354… and -190…. It could be know as segmentation fault.