Quantcast
Channel: How compiler handles a non-zero null pointer value in C? - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Eric Postpischil for How compiler handles a non-zero null pointer...

if (!pointer)If the C implementation used the value DEADBEEF16 for a null pointer, the compiler would compile if (!pointer) to code such as: compare pointer, #0xDEADBEEF branch-if-not-equal...

View Article


How compiler handles a non-zero null pointer value in C?

This answer properly explains about null pointers. In the last paragraph under Null Pointers it saysIf the underlying architecture has a null pointer value defined as address 0xDEADBEEF, then it is up...

View Article
Browsing all 2 articles
Browse latest View live