How unsafe is unsafe code?
<p>I'm reading about <a href="https://msdn.microsoft.com/en-us/library/chfa2zb8.aspx" rel="nofollow">unsafe</a>   code, primarily for working with Bitmaps. I can't find, however, an explanation of the limits of unsafeness. I understand that using pointers on an array will not be checked so I might try accessing memory outside of its bounds. So far so good. But what if I <em>do</em> access that memory. What happens? Might I be changing other variables' values? Or even change the program's binary code? Or just raise an exception?</p>

<p>I'd like to know what's the worst that can happen before I decide to use unsafe code. </p>