ya i have seen many questions like this in this group.......its all
because of sequence points the output varies from compiler to compiler

On Jun 4, 9:10 pm, nicks <[email protected]> wrote:
> i agree this type of expressions are not defined and are depend on the
> machine......
> it's something like a[i]=i++;
> the result may vary from machine to machine !
>
> On Sat, Jun 4, 2011 at 5:00 PM, Rohit Sindhu <[email protected]
>
>
>
>
>
>
>
> > wrote:
>
> > 1. If the operand values is to be stored in temporaries the first
> > evaluation will make one operand to be 4 and next evaluation make
> >     the other one to be 5. So in this case the result is  4*5 = 20.
>
> > 2. But if variable b is to be used as operands the result will be 5*5 = 25
>
> > As a good practice using sub

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to