L
laikon
Hello, everyone, below is the program to calculate an expression of
increment operator, the result j is 4 and i is 8 seems unbelieveable,
so what is the rule of such expression?
int i , j = 2;
i = ++j+(++j);
and what if
i = (j++)+(j++);
i = (j++)+(++j);
thanks for explanation!
increment operator, the result j is 4 and i is 8 seems unbelieveable,
so what is the rule of such expression?
int i , j = 2;
i = ++j+(++j);
and what if
i = (j++)+(j++);
i = (j++)+(++j);
thanks for explanation!