in Graph Theory
347 views
1 vote
1 vote
WE CAN USE STACK TO EVALUATE PREFIX EXPRESSION .THIS STATEMENT IS TRUE OR FALSE IF THEN HOW??

EXPRESSION IS + - * 2 3 5 / ^ 2 3 4
in Graph Theory
by
347 views

1 Answer

0 votes
0 votes
  • Similarlly we can do as postfix evalutation
  • In postfix we push an oprend in left side and in infix we push from right side.

2 Comments

Ya actually this is right ...but what I actually observing that when we pop out operand 1 (top) nd operand 2 ....then in prefix evaluation it should be operand1 operator operand 2
 nd in case of postfix evaluation it I operand2 operator operand1.... Correct me if i m obersving wrong???
1
1
You are right
1
1

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true