*(long*)0 = 0

*(long*)0 = 0;

What does this line of code do?
It will likely crash your program.
It interprets address 0 as a pointer to a long and assigns zero to the long stored there. 0 is by definition an invalid pointer, so, as Disch said, the program is very likely to crash if you try to do that.
That is unless you are Chuck Norris, because, as we all know,
Chuck Norris can dereference both null and void pointers.
the program has crashed.If you do not, of course you something different.
Topic archived. No new replies allowed.