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
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
History,
4 months ago
Social Sciences,
4 months ago
India Languages,
4 months ago
Math,
9 months ago
English,
9 months ago
Science,
1 year ago
Math,
1 year ago
Math,
1 year ago