2) Evaluate the postfix operation ABC*+D-
where A=4 ,8=3, c=5 ,D=1
Answers
Answered by
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