0
Who can explan me
I have the next code but I don't understand it int a=2; int =1; cout << (++a/b++)*5; The answer is 15 could you help me?
4 Answers
+ 8
Well, ++a makes a = 3. b++ makes b two, but only after division and other operators. So for our purpose, b++ is still 1. Therefore (++a/b++)*5 becomes (3/1)*5 which is 15. I hope this helps.
+ 4
Great answer Kartikeya Kotnala.
+ 2
đhe is right
+ 1
Thanks