Benefit of not defining the order of execution



Hi All,

In case of relational and logical operator the order of execution is
not defined except for && and || which is left to right.
What could be the reason for not defining the order of execution?
What benefit it provides ? is it the speed?


Regards,
Somenath
.



Relevant Pages

  • Re: Benefit of not defining the order of execution
    ... What could be the reason for not defining the order of execution? ... Not specifying the order allows implementations to do whatever is most efficient in their circumstances; ABC might be the fastest on one system, while CBA is the fastest on another, and doing all three in parallel might be fastest on a third. ...
    (comp.lang.c)
  • Re: Benefit of not defining the order of execution
    ... What could be the reason for not defining the order of execution? ... Microsoft used to allow options so that a function ...
    (comp.lang.c)
  • Re: Benefit of not defining the order of execution
    ... What could be the reason for not defining the order of execution? ... the order of execution is NOT ... defined - the is no explicit statement to that effect. ...
    (comp.lang.c)
  • Re: Benefit of not defining the order of execution
    ... Bartc wrote: ... In case of relational and logical operator the order of execution is ... Furthermore, it's clear that this lack of specification is not accidental, because the rules for sequence points do impose a partial order, just not a complete order. ...
    (comp.lang.c)
  • Re: Benefit of not defining the order of execution
    ... Phil Carmody wrote: ... In case of relational and logical operator the order of execution is ... defined - the is no explicit statement to that effect. ...
    (comp.lang.c)