Computer Science, asked by samirshastri72, 5 months ago

Evaluate the following expression if the value of a = 10, b= 5;

b+=a++ * 2 + b++ + 2 * ++a + b;​

Answers

Answered by locoleak
0

hope it it will help u

Mark. me as brain list

Attachments:
Answered by sourasghotekar123
0

Answer: 60 is the answer.

Explanation:

given, a=10 , b= 5

b+= a++ *2 + b++ +2 * ++a + b\\b=5+10*2+5+2+2*12+6\\b=5+20+5+24+6\\b=60

  • Infix: Infix notation refers to the typical mathematical phrase we frequently come across.
  • An operator is written between two operands in infix form.

For instance:

  • The infix form of an expression is A * (B + C) / D.
  • Decoding this equation is as easy as adding B and C, multiplying the result by A, and then dividing the result by D to get the answer.

  • Prefix: In a prefix expression, the operator and its operands are written first.
  • Polish notation is another name for this notation.

  • For instance, the prefix form of the aforementioned phrase is /* A + B C D.
  • Expressions of this kind cannot only be translated into infix expressions.

  • Postfix: An operator is written in a postfix expression.

#SPJ3

https://brainly.in/question/53854609

Similar questions