CS 330 Organization of Programming Languages . Soundararajan Ezekiel Department of Computer Science Ohio Northern University ADA, Ohio 45810 e-mail: [email protected] http://www.onu.edu/user/FS/sezekiel. FORTRAN CODE WALK PROBLEMS.
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
FORTRAN Left: */+-
Pascal Left: all
C Left: postfix++, postfix--, */%binary+ binary-
Right: prefix++ prefix--, unary + unary-
C++ Left: */%binary+ binary-
Right: ++, --, unary -, unary +
Ada Left: all except **
in APL: AxB+C (x means multiplication) A=3, B=4, C=5 then 27
How: associative right to left-- addition first then multiplication
The value computed for a in fun2
depends on the order of evaluation
of the operands in the expression
the value will be 8 or 20