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 ?
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 ?