c++ - Is if statement order check fr object depend on compiler? -


this question has answer here:

quick question. how following code perform order of check :

if ((null != objectptr) && (objectptr->isvalid()) ) { } 

is order on if-statement depend on compiler used? code crash if objectptr null?

is order depend on if statement depend on compiler used?

no.

could code crash if objectptr null?

no.

the language guarantees that.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -