Liu Jin <bl*****@sohu.com> wrote:
392 means 7*7*8
Can't it be 8*8*8 or any other?
I wonder whether the calculation sequence in such an expression is
specified in ansi c.
Thanks in advance.
It is not defined, and this code invokes so called undefined behavior
which means that anything may happen, from nuclear weapon attack at your
desk or nasal daemons to program runs as expected by silly programmer.
You must not modify an object more than once inbetween to sequence
points.
Please read the faq:
http://www.eskimo.com/%7Escs/C-faq/s3.html
--
Z (Zo**********@daimlerchrysler.com)
"LISP is worth learning for the profound enlightenment experience
you will have when you finally get it; that experience will make you
a better programmer for the rest of your days." -- Eric S. Raymond