Why does accessing an out-of-bounds array element not cause a segmentation fault?

Revision en1, by rahulnagurtha, 2016-10-13 18:18:59

This blog post is a continuation of this question. I want to know the chances of getting segmentation fault when accessing out-of-bound array element. Does the chances depend on whether the array is allocated on stack or heap ? Thanks.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English rahulnagurtha 2016-10-13 18:18:59 445 Initial revision (published)