I am working on a project and I keep finding lines like this one:
if(pointer && pointer->whatever) {...}
Is it safe to assume that the if
will carry on comparisons in the same order as described in the source code? Or may it happen that pointer->wathever
is evaluated before (or concurrently) to the check of pointer
against NULL?