1.

The prefix form of an infix expression (p + q) – (r * t) is?(a) + pq – *rt(b) – +pqr * t(c) – +pq * rt(d) – + * pqrtAsked question is from Stack Operations in division Abstract Data Types of Data Structures & Algorithms II had been asked this question in examination.

Answer»

Correct option is (c) – +PQ * rt

Easy explanation - GIVEN Infix Expression is ((p+q)-(R*t))

(+pq)-(r*t)

(-+pq)(r*t)

-+pq*rt. Thus PREFIX expression is -+pq*rt.



Discussion

No Comment Found

Related InterviewSolutions