Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

what you wrote may actually be a valid operation if the OS maps critical functions into page 0

Then you'd better not call it NULL. "0 and NULL are the same" was how I first got root on my phone ;)



In C++ 0 and NULL are the same by definition. Just look at Stroustrup's C++ Style and Technique FAQ.


Assigning the value 0 or NULL to a pointer does not necessarily set it to address 0.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: