why does the value of a++ still remain as 4 and not 5 in this problem??
Attachments:
Harshi666:
wow.... thanks.. i got it
Answers
Answered by
1
Because ++ is written after the variable and if it is written after the variable the value remains the same if it ++ is before the value changes
Answered by
2
Hi,
because .. ++ first does evaluation and then incriments it, that's why value of a remain same.
Similar questions
Math,
7 months ago
Math,
1 year ago
India Languages,
1 year ago
Math,
1 year ago
Geography,
1 year ago