I need to be able to differentiate between NULL
and 0
in c++.
Is there a way to use something like the ===
operator (such as the identity operator found in JavaScript) to tell the difference between NULL
and 0
in c++?
NULL
is a preprocessor macro, and will be replaced directly with 0 when the preprocessor runs. So in short, no.
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