My opinion, for readability, think about it, if you looked at 0, what does it mean if it means its unsigned integer, or if it was 0x0, then instinctively it has something to do with binary notation, more likely platform dependent.
Since the tag is an agnostic of the language, and the word "null pointer" in Delphi / Object Pascal, it is "nil", in C # it is "null", in C / C ++ it is "NULL".
Look at the C-FAQ, for example, in section 5 for NULL pointers, specifically 5.4 , 5.5 , 5.6, and 5.7 , to give you an idea of ββthis.
In a nutshell, the use and designation of null pointers depends on
- What language is used?
- Semantics and syntax of language specifications.
- What type of compiler?
- Platform type, in terms of memory access, processor, bit ...
Hope this helps, Regards, Tom.
source share