mardi 25 juillet 2017

Is if statement order check fr object depend on compiler? [duplicate]

This question already has an answer here:

Quick question. How the following code will perform order of check :

if ((NULL != ObjectPtr) && (ObjectPtr->isValid()) )
{
}

Is the order on if-statement depend on compiler used? Could that code crash if ObjectPtr is NULL?

Aucun commentaire:

Enregistrer un commentaire