+ 3

Why this code work that

I have int a=4 and b=3; so operator "if " (a++ == ++b) say true, ok 4 = 1+3. but why (a++ == 4) false and (++b = 4) false too?

10th Nov 2017, 6:58 PM
catheryna Kruk
catheryna Kruk - avatar
4 Answers
+ 5
after incrementing "a = 5" and you are assigning "++b" not comparing it
10th Nov 2017, 7:17 PM
Binyam Equar
Binyam Equar - avatar
+ 1
ace thanks
10th Nov 2017, 7:22 PM
catheryna Kruk
catheryna Kruk - avatar