[Ilugc] Re: [C] Swap integers without using temp variable

  • From: anand.kumar@xxxxxxxxxx (Anand Kumar Saha)
  • Date: Wed Apr 20 06:29:02 2005

   ,---
   | I forget the exact reference to chapter and verse of the 
   | Standard.
   `-------

Probably you are refering to this (Section number 6.5):
http://www.open-std.org/jtc1/sc22/open/n2794/n2794.txt

<excerpt>

        6.5  Expressions

       [#1]  An  expression is a sequence of operators and operands
       that specifies computation of a value, or that designates an
       object  or  a  function,  or that generates side effects, or
       that performs a combination thereof.

       [#2] Between the previous and next sequence point an  object
       shall  have  its  stored  value modified at most once by the
       evaluation of an expression.  Furthermore, the  prior  value
       shall  be  accessed  only  to  determine  the  value  to  be
       stored.58)   Informative  annex  D presents an algorithm for
       determining whether an  expression  or  set  of  expressions
       meets these requirements.

</excerpt>

That's well pointed out. There is, infact a whole thread consisting
of 67 posts on the comp.lang.c news group on this:

http://groups.google.co.in/groups?hl=en&lr=&th=f0e83a80e9338bd3&seekm=
42gkn9%241kq%40eagle.uis.edu

mind the line break in the URL.

saha
--

Other related posts: