• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            Prayer

            在一般中尋求卓越
            posts - 1256, comments - 190, trackbacks - 0, articles - 0
              C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

            NULL 0 \0以及nul的區別

            Posted on 2009-07-06 16:02 Prayer 閱讀(741) 評論(0)  編輯 收藏 引用 所屬分類: C/C++
            NULL is a macro defined in several standard headers, 0 is an integer constant, '\0' is a character constant, and nul is the name of the character constant. All of these are *not* interchangeable:

            NULL is to be used for pointers only since it may be defined as ((void *)0), this would cause problems with anything but pointers.

            0 can be used anywhere, it is the generic symbol for each type's zero value and the compiler will sort things out.

            '\0' should be used only in a character context.

            nul is not defined in C or C++, it shouldn't be used unless you define it yourself in a suitable manner, like:

            #define nul '\0'
            91精品日韩人妻无码久久不卡| | 国产伊人久久| 国产亚洲色婷婷久久99精品| 久久亚洲精精品中文字幕| 国产精品久久永久免费| 久久精品18| 国产成人久久激情91| 久久人人爽人人爽AV片| 嫩草伊人久久精品少妇AV| 久久99精品久久久久久不卡| 婷婷久久久亚洲欧洲日产国码AV | 97超级碰碰碰久久久久| 久久久WWW成人免费毛片| 99久久无色码中文字幕人妻| 国产日韩欧美久久| 国产精品女同久久久久电影院| 日韩AV毛片精品久久久| 国产精品久久免费| 久久男人Av资源网站无码软件| 久久夜色精品国产www| 久久国产精品久久精品国产| 色婷婷综合久久久久中文字幕 | 久久99国产精品久久99| 午夜精品久久久久久久| 久久久久久久久66精品片| 狠狠综合久久综合中文88 | 亚洲国产精品综合久久网络| 99久久婷婷国产一区二区| 久久99精品国产麻豆| 久久久久久毛片免费播放| 欧美伊人久久大香线蕉综合 | 久久国产AVJUST麻豆| 亚洲精品无码久久久久AV麻豆| 国产成人精品久久亚洲高清不卡 | 久久人人爽人人爽人人AV| 奇米综合四色77777久久| 精品无码久久久久久午夜| 精品精品国产自在久久高清| 国产精品免费福利久久| 久久精品九九亚洲精品天堂 |