Aspire's Library

A Place for Latest Exam wise Questions, Videos, Previous Year Papers,
Study Stuff for MCA Examinations - NIMCET

Previous Year Question (PYQs)



What is the result of postfix expression ab*c+d+ where a=2, b=2, c=3, d=4 ?





Solution

Solution: Postfix: a*b*c + d + ⇒ 2*2*3 + 4 = 12+4 = 16 (check carefully). Actually: ab* c + d + → (a*b)+c+d.
2*2+3+4=11 (typo). But correct reading: (a*b*c)+d= (2*2*3)+4=16. Options given: 16 present.
Answer: (A) 16


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More


Online Test Series,
Information About Examination,
Syllabus, Notification
and More.

Click Here to
View More

Ask Your Question or Put Your Review.

loading...