On 13 March 2012 15:15, Wouter van Ooijen wrote: > AFAIK in my 'basic' school (6-12y) I was told that multiplication has > precedence over division. In high school (12-18y) I recall them having > equal precedence, and to evaluate left-to-right. And the wiser of te > teachers discouraged writing anything that could be interpreted > differently depending on whether multiplication was to have precedence > (over division) or not, for instance by using the horizontal bar instead > of the /. > Now I have an impression that when you write 6/2(1+2) without the '*' then this way the multiplication is treated as a higher priority than the division, otherwise equal to it? Or is this absurd? Tamas > > APL btw evaluates strictly from right to left! > > -- > > Wouter van Ooijen > > -- ------------------------------------------- > Van Ooijen Technische Informatica: www.voti.nl > consultancy, development, PICmicro products > docent Hogeschool van Utrecht: www.voti.nl/hvu > C++ on uC blog: http://www.voti.nl/erblog > > -- > 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 .