views:

379

answers:

1

As you may know C/C++ does not specified expression evaluation order. What are the reasons to left them undefined.

+3  A: 

It allows compiler optimizations. One example would be the reordering of arithmetic instructions for the maximum usage of the ALUs or hiding memory latency with calculations.

ebo