View Single Post
  #8 (permalink)  
Old July 16th, 2010, 08:27 AM
bon_chan bon_chan is offline
Authorized User
 
Join Date: Mar 2010
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

Yes you got it!

That's exactly it

So in your example, the processing will be performed in this order:
*
%
/
+
+=

That is only if you write it without brackets, I mean like that:
resultVar += var1 * var2 + var3 % var4 / var5;

If you use brackets like for example: resultVar += var1 * (var2 + var3) % var4 / var5;
The order will be:
+
*
%
/
+=

Let me know if you understand my explanation (as English is not my first language).

Bon_chan

Last edited by bon_chan; July 16th, 2010 at 08:34 AM.