2 ms·
TL;DR: 0 is always NULL, but NULL is not always 0. Checking or assigning a pointer to 0 will work but converting NULL to an integer is implementation-defined.
by saagarjha 7y ago
TL;DR: 0 is always NULL, but NULL is not always 0. Checking or assigning a pointer to 0 will work but converting NULL to an integer is implementation-defined.