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

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -