久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <tfoot id='KNSD4'></tfoot>

      1. <legend id='KNSD4'><style id='KNSD4'><dir id='KNSD4'><q id='KNSD4'></q></dir></style></legend>

      2. <i id='KNSD4'><tr id='KNSD4'><dt id='KNSD4'><q id='KNSD4'><span id='KNSD4'><b id='KNSD4'><form id='KNSD4'><ins id='KNSD4'></ins><ul id='KNSD4'></ul><sub id='KNSD4'></sub></form><legend id='KNSD4'></legend><bdo id='KNSD4'><pre id='KNSD4'><center id='KNSD4'></center></pre></bdo></b><th id='KNSD4'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='KNSD4'><tfoot id='KNSD4'></tfoot><dl id='KNSD4'><fieldset id='KNSD4'></fieldset></dl></div>

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

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

        為什么 int j = 012 給出輸出 10?

        Why int j = 012 giving output 10?(為什么 int j = 012 給出輸出 10?)
          <bdo id='qJGRJ'></bdo><ul id='qJGRJ'></ul>
            <tbody id='qJGRJ'></tbody>

            <tfoot id='qJGRJ'></tfoot>

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

                1. <i id='qJGRJ'><tr id='qJGRJ'><dt id='qJGRJ'><q id='qJGRJ'><span id='qJGRJ'><b id='qJGRJ'><form id='qJGRJ'><ins id='qJGRJ'></ins><ul id='qJGRJ'></ul><sub id='qJGRJ'></sub></form><legend id='qJGRJ'></legend><bdo id='qJGRJ'><pre id='qJGRJ'><center id='qJGRJ'></center></pre></bdo></b><th id='qJGRJ'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='qJGRJ'><tfoot id='qJGRJ'></tfoot><dl id='qJGRJ'><fieldset id='qJGRJ'></fieldset></dl></div>
                  <legend id='qJGRJ'><style id='qJGRJ'><dir id='qJGRJ'><q id='qJGRJ'></q></dir></style></legend>
                  本文介紹了為什么 int j = 012 給出輸出 10?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  在我的實際項目中偶然發生的這里是我修改后的小程序.

                  In my actual project It happened accidentally here is my modified small program.

                  我不明白為什么它會輸出 10?

                  I can't figure out why it is giving output 10?

                  public class Int
                  {
                      public static void main(String args[])
                      {
                          int j=012;//accidentaly i put zero 
                          System.out.println(j);// prints 10??
                      }
                  }
                  

                  在那之后,我放了兩個零,仍然給出輸出 10.

                  After that, I put two zeros still giving output 10.

                  然后我將 012 更改為 0123,現在輸出 83?

                  Then I change 012 to 0123 and now it is giving output 83?

                  誰能解釋一下原因?

                  推薦答案

                  比我把 012 改成 0123 現在輸出 83 嗎?

                  Than I change 012 to 0123 and now it is giving output 83?

                  因為,它被視為八進制基數 (8),因為該數字的前導是 0.所以,它對應的十進制值為10.

                  Because, it's taken as octal base (8), since that numeral have 0 in leading. So, it's corresponding decimal value is 10.

                  012:

                  (2 * 8 ^ 0) + (1 * 8 ^ 1) = 10
                  

                  0123:

                  (3 * 8 ^ 0) + (2 * 8 ^ 1) + (1 * 8 ^ 2) = 83
                  

                  這篇關于為什么 int j = 012 給出輸出 10?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How can I detect integer overflow on 32 bits int?(如何檢測 32 位 int 上的整數溢出?)
                  Local variables before return statements, does it matter?(return 語句之前的局部變量,這有關系嗎?)
                  How to convert Integer to int?(如何將整數轉換為整數?)
                  How do I create an int array with randomly shuffled numbers in a given range(如何在給定范圍內創建一個隨機打亂數字的 int 數組)
                  Inconsistent behavior on java#39;s ==(java的行為不一致==)
                  Why is Java able to store 0xff000000 as an int?(為什么 Java 能夠將 0xff000000 存儲為 int?)

                  1. <legend id='MfXtI'><style id='MfXtI'><dir id='MfXtI'><q id='MfXtI'></q></dir></style></legend>
                    <tfoot id='MfXtI'></tfoot>
                    • <small id='MfXtI'></small><noframes id='MfXtI'>

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

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

                              <tbody id='MfXtI'></tbody>
                          • 主站蜘蛛池模板: 天堂亚洲网 | 欧美视频网 | 国产成人精品综合 | 国产欧美日韩精品一区二区三区 | 久久高清| 日韩欧美中文字幕在线观看 | 成人av在线播放 | 午夜影院 | 99在线资源| 亚洲欧美综合精品另类天天更新 | 91黄在线观看 | 久久久久久久国产精品 | 在线a视频 | 欧美1区| 欧美 日韩 在线播放 | 一区二区国产精品 | 欧美日韩一区二区三区在线观看 | 国产精品精品久久久 | 精品久久久一区 | www.国产.com| 国产影音先锋 | 青草青草久热精品视频在线观看 | 欧美一级欧美三级在线观看 | 一区二区三区 在线 | 一区二区三区中文字幕 | 久久国产高清 | 欧美日韩高清 | 91中文字幕在线观看 | 成人午夜免费在线视频 | 日韩高清三区 | 国产成人精品网站 | 日韩免费网站 | www.日日干| 一级大黄色片 | 蜜桃视频在线观看免费视频网站www | 伊人热久久 | 久久久久久成人 | 日韩欧美久久精品 | 国产激情一区二区三区 | 欧美综合久久 | 国产精品久久久久久久三级 |