Theory Programming LanguagesSolutionThe order of evaluation
Theory Programming Languages
Solution
The order of evaluation:-
(a>b)||((d<=17)&&(c<10))
let p =(a>b)
q = (d<=17)
r = (c<10)
then
p is evaluated
after that q is evaluated
then r
then (q&&r)
then finally p||(q&&r)
(a>b) ||((d<=17) && (c<10))
