if(ptr != NULL && ptr->isSomething())
{
...
}
This doesn't cause a segfault when I run it; though could it possibly throw one?
Is it guaranteed for the &&
operator, that if the first condition is false, then it won't even evaluate the second one?