Re: [C]

From: Jörgen \ (di5sig@CSE.HKS.SE)
Date: 10/08/97


> a = 1.0*10/100  (1.0 being the float)
Hmm.. can the value of a be predicted?
Is there any standard in how subexpressions are evaluated in C? Is it left to
right or is it just depending on the implementation of the compiler?
It could very well be expanded to 1.0 * (10 / 100) => 0.0

// Jorgen


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST