Computer Science, asked by brajeswar28, 8 months ago

convert the infix(a+b)*(c+d)/f into postfix and prefix expression​

Answers

Answered by arpitham
4

Answer:

I try this problem

Explanation:

g flexibility bitbido ham

Answered by vishakasaxenasl
3

Answer:

Postfix expression: ab+cd+*f/

Prefix expression: *+ab/+cdf

Explanation:

There are three popular notations for writing an expression and they are named as infix, prefix, and postfix.

1. Infix Expression

Infix expressions are those in which the operator symbol is kept between the operands. These expressions are also used normally in mathematics or algebra we write infix expressions.

For example: a+b, or a+b*c/d etc.

2. Prefix Expression

Prefix expressions are in which the operator is written before the operand. They are only used by computers for performing calculations.

For example: +ab, +ab*/cd etc.

3. Postfix Expression

Postfix expressions are those in which operands are written before the operators. They are mostly used by digital computers for checking the validity of an expression and matching the parenthesis.

For example: ab+, ab+cd*/ etc.

#SPJ2

Similar questions