Let's break down the expression step by step:

  1. m++ - The value of m is initially 10, and then it is incremented by 1. So, m++ returns 10, and m becomes 11.

  2. --m - The value of m is decremented by 1. So, --m returns 10, and m becomes 10.

  3. ++m - The value of m is incremented by 1. So, ++m returns 11, and m becomes 11.

  4. m-- - The value of m is initially 11, and then it is decremented by 1. So, m-- returns 11, and m becomes 10.

  5. m-- - The value of m is initially 10, and then it is decremented by 1. So, m-- returns 10, and m becomes 9.

  6. m++ - The value of m is incremented by 1. So, m++ returns 9, and m becomes 10.

  7. m-- - The value of m is initially 10, and then it is decremented by 1. So, m-- returns 10, and m becomes 9.

  8. m++ - The value of m is incremented by 1. So, m++ returns 9, and m becomes 10.

In summary, the expression m++ - --m + ++m - m-- + m++ - m-- + m++ is equal to 10 - 10 + 11 - 10 + 9 - 9 + 10, which simplifies to 11

m=10m++ - --m + ++m - m-- + m++ - m-- + m++

原文地址: http://www.cveoy.top/t/topic/hZCQ 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录