Current location - Education and Training Encyclopedia - Resume - The (+-) symbol in C++ and the priority of increase or decrease? For example, is -i++ calculated by that (-i)++ and -(i++)?
The (+-) symbol in C++ and the priority of increase or decrease? For example, is -i++ calculated by that (-i)++ and -(i++)?
++takes precedence over addition and subtraction, and is lower than addition and subtraction. So (i++)+(i++)+(i++), first calculate the sum of three I's, then calculate three++,and the result is 15, and I becomes 8. If it is (++i)+(++I)+(++)