0

I am newbie to coding and am confused about increment and decrement operators.

int a = 10;
int b = ++a + ++a + ++a;

According to youtube videos it should print 39 but it prints 37. Can someone explain me the reason ?

R. Bayram
  • 17
  • 1

0 Answers0