Can We cheat in the code  and write someting at NULL memory location and avoid segmentation fault at runtime?
<p>I just wanted to know if we can skip the segmentation fault at runtime and write something at memory location of NULL . As of now i believe its a very sacrosanct  place and you cant do anything there. I tried a little piece of code.</p>

<pre><code>   #include&lt;iostream&gt;
   #include&lt;stdio.h&gt;
   #include&lt;conio.h&gt;
   #include&lt;stdlib.h&gt;
   using namespace std;            
   int main()
   {
     int *p = NULL;
     int z=6;
     p= &amp;z;
     std::cout &lt;&lt; "value of p is :" &lt;&lt; *p;   
     p=NULL;
     *p=5;  // Will give segmentation fault as dereferencing of NULL is not allowed
     std::cout &lt;&lt; "value of p is :" &lt;&lt; *p;   
     getch();
     return 0;      
  }
</code></pre>

<p>I know dereferencing the NULL memory allocation is not possible and hence it cant be assigned any value . Doing so gives us segmentation fault. Just for an inquisitive nature, if we can cheat and write at NULL?</p>
