f(i--,i-- ); causes Undefined Behavior . Do not write such code.
EDIT :
The comma , present in the above expression is not a Comma operator . It is just a separator to separate arguments (and which is not a sequence point.)
Also, the evaluation order of the arguments to the Unspecified function, but the expression calls Undefined Behavior, because you are trying to change i twice between two points in the sequence.
Uff I'm tired. :(
Prasoon saurav
source share