if int a= 5, b = 4 and c = zero what will be the value stored in C =a%++b
Answers
Answered by
1
Answer:
First take the expression and substitute 4 in the place of a and 5 in the place of 5
a++ + ++a- b-- + ++b
after substituting it would look like this,
4++ + ++4-5-- + ++5
= 4+5-5+6
In the next steep ++4 becomes 5 since it dose pre-increment operation and similarly for ++5 becomes 6 =10
The answer is 10
Finally the value of a is 6 and b is 5
Explanation:
hope its hellp full to you
Similar questions