Home > Back-end >  C language expression since many times continuously increase operation in addition why expression si
C language expression since many times continuously increase operation in addition why expression si

Time:05-06

In legend 4.4 explain,
Feel the p output is also wrong, should not be 18,
I suddenly felt not since increase since decreases computing
` ` `

# include
Int main ()

{

Printf (" Hello Word! \n");
Int I=5, j=5, p, q=0, x=5, y;
P=(i++) + (i++) + (i++);
For (int CNT=0; CNT & lt; 3; Cnt++)
{

Q +=(+ + j);
Printf (" % d q=% d \ n ", CNT, q);
}
Printf (" % d \ n \ n \ n % d % d % d \ n \ n \ n ", p, q, I, j);
Y=(+ + x) + (+ + x) + (+ + x);
Printf (" % d ", y);
return 0;
}

` ` `
In this program, the for loop out of the final answer is 21, is behind the 22 is indeed on the 1, I'm going to be crazy!
  • Related