This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: /internet


>> 	y = a * b * c * d;
>> 
>> the compiler could do the multiplications in any order, but for
>
>No it cannot. C specifies whether operations are left- or
>right-associative, meaning it's well-defined which is executed first.
>Think "-" vs. "=". ;-)

Read the pertinent standards, then re-think.  You're wrong.

        tq vm, (burley)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]