Where p is the name of a pointer, does p != 0 return a bool that is true where p is null (not pointing at anything) ?
Yes. The C and C++ standards specify that the 0 pointer is not a valid memory location.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With