Computer Science, asked by hussainaamir6969, 9 months ago

What is the value of m after evaluating the following expression
m-=9%++n + ++n/2
When the initial value of m=12
n=4

Answers

Answered by darkwarrior3062005
2

Answer:

We have,

int m = 10, n = 6.

Program:

m-= 9%++n + ++n/2;

Output:

4

Explanation:

m = 10 - [9%++n + ++n/2]

= 10 - [9%7 + 8/2]

= 10 - [2 + 4]

= 10 - 6

= 4.

Similar questions