If m=3,n=2, determine the value of m,n after executing
(++m)/=n++
Answers
Answered by
1
Answer:
Prefix : An expression is called the prefix expression if the operator appears in the expression before the operands. here the number is incremented or decremented (increment in your case) than the value is display
Postfix: An expression is called the postfix expression if the operator appears in the expression after the operands. here the value is display first then the number is incremented or decremented (increment in your case) in memory of computer.
(++m)/=n++, this expression mean
++m=++m/n++ (given value of m=3 and n=2)
after execution value n becomes 3 and value of m become 2.5
Similar questions