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

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -