• <legend id='WLASP'><style id='WLASP'><dir id='WLASP'><q id='WLASP'></q></dir></style></legend>

      <small id='WLASP'></small><noframes id='WLASP'>

        <bdo id='WLASP'></bdo><ul id='WLASP'></ul>

      <tfoot id='WLASP'></tfoot>
        <i id='WLASP'><tr id='WLASP'><dt id='WLASP'><q id='WLASP'><span id='WLASP'><b id='WLASP'><form id='WLASP'><ins id='WLASP'></ins><ul id='WLASP'></ul><sub id='WLASP'></sub></form><legend id='WLASP'></legend><bdo id='WLASP'><pre id='WLASP'><center id='WLASP'></center></pre></bdo></b><th id='WLASP'></th></span></q></dt></tr></i><div id='WLASP'><tfoot id='WLASP'></tfoot><dl id='WLASP'><fieldset id='WLASP'></fieldset></dl></div>

        c=a+++b 运算是什么意思?

        时间:2023-10-06

          <bdo id='W9Mft'></bdo><ul id='W9Mft'></ul>

            <tfoot id='W9Mft'></tfoot>
          1. <i id='W9Mft'><tr id='W9Mft'><dt id='W9Mft'><q id='W9Mft'><span id='W9Mft'><b id='W9Mft'><form id='W9Mft'><ins id='W9Mft'></ins><ul id='W9Mft'></ul><sub id='W9Mft'></sub></form><legend id='W9Mft'></legend><bdo id='W9Mft'><pre id='W9Mft'><center id='W9Mft'></center></pre></bdo></b><th id='W9Mft'></th></span></q></dt></tr></i><div id='W9Mft'><tfoot id='W9Mft'></tfoot><dl id='W9Mft'><fieldset id='W9Mft'></fieldset></dl></div>

                <tbody id='W9Mft'></tbody>

              • <small id='W9Mft'></small><noframes id='W9Mft'>

                • <legend id='W9Mft'><style id='W9Mft'><dir id='W9Mft'><q id='W9Mft'></q></dir></style></legend>
                  本文介绍了c=a+++b 运算是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  下面的代码让我很困惑

                  int a=2,b=5,c;
                  c=a+++b;
                  printf("%d,%d,%d",a,b,c);
                  

                  我预计输出为 3,5,8,主要是因为 a++ 表示 2 +1 等于 3,而 3 + 5 等于 8,所以我预计为 3,5,8.结果是3,5,7.有人可以解释为什么会这样吗?

                  I expected the output to be 3,5,8, mainly because a++ means 2 +1 which equals 3, and 3 + 5 equals 8, so I expected 3,5,8. It turns out that the result is 3,5,7. Can someone explain why this is the case?

                  推荐答案

                  被解析为c = a++ + b,而a++表示后增,即后增取a 的值来计算a + b == 2 + 5.

                  It's parsed as c = a++ + b, and a++ means post-increment, i.e. increment after taking the value of a to compute a + b == 2 + 5.

                  永远写这样的代码.

                  这篇关于c=a+++b 运算是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:放置新建和删除 下一篇:值初始化和非 POD 类型

                  相关文章

                  最新文章

                • <legend id='dwuZp'><style id='dwuZp'><dir id='dwuZp'><q id='dwuZp'></q></dir></style></legend>
                • <tfoot id='dwuZp'></tfoot>

                • <small id='dwuZp'></small><noframes id='dwuZp'>

                    <bdo id='dwuZp'></bdo><ul id='dwuZp'></ul>

                      <i id='dwuZp'><tr id='dwuZp'><dt id='dwuZp'><q id='dwuZp'><span id='dwuZp'><b id='dwuZp'><form id='dwuZp'><ins id='dwuZp'></ins><ul id='dwuZp'></ul><sub id='dwuZp'></sub></form><legend id='dwuZp'></legend><bdo id='dwuZp'><pre id='dwuZp'><center id='dwuZp'></center></pre></bdo></b><th id='dwuZp'></th></span></q></dt></tr></i><div id='dwuZp'><tfoot id='dwuZp'></tfoot><dl id='dwuZp'><fieldset id='dwuZp'></fieldset></dl></div>