evaluate the following if a=10.- a-=a++ + a*5- --a%a and show the steps.
Answers
Answered by
0
Explanation:
then second step it will
10 + --b ( here, for the post-increment a will return/give previous value then a will increment a's value, now the expression is 10 + --b, a=11, b=20)
then third step it will
10 + 19 ( here for the pre-increment b increment 1 then b will return/give the value, now expression is 10 + 19, a= 11, b=19)
then finally expression will 10 + 19 = 29.
Similar questions
Computer Science,
3 months ago
Computer Science,
3 months ago
Hindi,
3 months ago
Math,
6 months ago
Sociology,
10 months ago
Math,
10 months ago
Geography,
10 months ago