+1 vote
in Data Structures & Algorithms I by (110k points)
The prefix form of an infix expression (p + q) – (r * t) is?

(a) + pq – *rt

(b) – +pqr * t

(c) – +pq * rt

(d) – + * pqrt

Asked question is from Stack Operations in division Abstract Data Types of Data Structures & Algorithms I

I had been asked this question in examination.

1 Answer

+1 vote
by (412k points)
selected by
Best answer
Correct option is (c) – +pq * rt

Easy explanation - Given Infix Expression is ((p+q)-(r*t))



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

Related questions

Welcome to TalkJarvis QnA, a question-answer community website for the people by the people. On TalkJarvis QnA you can ask your doubts, curiosity, questions and whatever going in your mind either related to studies or others. Experts and people from different fields will answer.