Florian Weimer wrote:
* Laurent GUERBY:

Just curious: is there a "portable" way to read from memory
address zero in C code? "portable" here means likely to work
on most compilers without exotic compile flags in 2009.

No, C hasn't got a notion of addresses.  The situation is likely to
get even more extreme, not less (in the sense that C continues to be
perceived as a low-level language, but current implementations really
aren't).

Laurent asked a pragmatic question, you answered with a language
lawyer hat on, which is really not so helpful. In fact if you cast
a value of zero which the compiler cannot see is zero, and then
dereference, this will meet Laurent's criterion.

Reply via email to