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
ifstatement depend on compiler used?
no.
could code crash if
objectptrnull?
no.
the language guarantees that.
Comments
Post a Comment