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

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

Ansible warning on jinja2 braces on when -