Computer Science, asked by paurnimanavale90, 2 months ago

2) Evaluate the postfix operation ABC*+D-
where A=4 ,8=3, c=5 ,D=1​

Answers

Answered by gautamkhms20160461
0

Answer:

Postfix Expression=a b c d + - *

=a b ( c + d ) - *

=a ( b - ( c + d ) ) *

=( a * ( b - ( c + d ) ) )

Now Put the values a=8 ,b=4 c=2 and d=5

( 8 * ( 4 - ( 2 + 5 ) ) )

= ( 8 * ( 4 - ( 7) ) )

=( 8 * ( -3 ) )

=-24

Similar questions