370 views
1 votes
1 votes
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

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.

Related questions

0 votes
0 votes
0 answers
4
24aaaa23 asked Oct 1, 2023
177 views
Consider a grammar G. Given below is the sentential form of G to derive a string W = –(id + id) and E is the starting symbol of G.E - –EE - –(E)E - –(E+E)E - –(...