Guys, I have sent a message to this thread attaching a screenshot of the Linux Calculator app -- did it gone through? Just asking because I thought it did but then I got a rejected message from Piclist as the picture was bigger than 40k. Thanks, Tamas On 12 March 2012 15:37, Nicola Perotto wrote: > > > On 12/03/2012 11.41, Tamas Rudnai wrote: > > > > I am still having a trouble to remember what I have learned in school (= as > > opposed to what I am applying nowadays), but all my braincells tells me > > that division and multiplication has the very same priority and should = be > > handled from left to right. > > > > Therefore 6 / 2 * (1 + 2 ) should be > > > > 6 > > -- * (1+2) =3D 9 > > 2 > I remember very well what lerned at school and this is the only right > interpretation. > And is simple and smart! > When writing by hand it's correct to omit the * because this is in The > Rule. > > With any programming language we must see The Rule on operator precedence > but I > think that if it came out with something different it can be wrong (may > exists a > contest in which...). > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > --=20 int main() { char *a,*s,*q; printf(s=3D"int main() { char *a,*s,*q; printf(s=3D%s%s%s, q=3D%s%s%s%s,s,q,q,a=3D%s%s%s%s,q,q,q,a,a,q); }", q=3D"\"",s,q,q,a=3D"\\",q,q,q,a,a,q); } --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .