1.

Using the evaluation of infix expression, evaluate a^b+cand choose the correct answer. (a=2, b=2, c=2)(a) 12(b) 8(c) 10(d) 6This question is from Evaluation of an Infix Expression (Not Parenthesized) in division Application of Stacks of Data Structures & Algorithms IThis question was addressed to me by my college director while I was bunking the class.

Answer»

Correct ANSWER is (d) 6

Easy EXPLANATION - ^ has the highest precedence. HENCE, 2^2 is EVALUATED and then 4+2 GIVES 6.



Discussion

No Comment Found

Related InterviewSolutions