Suppose I have a pointer: int *pointer
.
If I want to test its nullability, should I do it with:
bool nullability = !pointer;
Or with:
bool nullability = (pointer == nullptr);
Are both expressions equivalent? If not, why and what are the side effects?