how can the compiler tell in what order to evaluate an arith

how can the compiler tell in what order to evaluate an arithmetic expression?

Solution

It has syntax analyser,which does this operations for it.This syntax analyser is also called as parser. It looks at the expression and converts it into an syntax tree which is abstract in nature.parser also lists all its allowable substitutions and tries to find a series of them which matches the input code .while creation of syntax trees ,it considers precedence and associativity concpts

how can the compiler tell in what order to evaluate an arithmetic expression?SolutionIt has syntax analyser,which does this operations for it.This syntax analys

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site