because p is a dangling pointer and that you can't modify what it's pointing to.
On Mon, Dec 17, 2012 at 7:10 PM, Shubham Sandeep <s.shubhamsand...@gmail.com > wrote: > how does this code achieve SIGSEGV???? > code: > *p;main(){*p=0;} > > -- > Regards, > SHUBHAM SANDEEP > IT 3rd yr. > NIT ALD. > > -- > > > -- - Saurabh Paliwal B-Tech. Comp. Science and Engg. IIT ROORKEE --