• <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 閱讀(736) 評論(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'
            亚洲欧美成人久久综合中文网| 久久99热这里只有精品国产| 久久青青草原国产精品免费| 国产精品内射久久久久欢欢| 人妻中文久久久久| 思思久久精品在热线热| 国产精品美女久久久久久2018| 国产精品成人99久久久久| 欧美亚洲国产精品久久高清| 99久久无码一区人妻a黑| 欧美午夜A∨大片久久| 久久99精品国产麻豆| 欧美午夜精品久久久久久浪潮| 亚洲中文字幕无码久久2020| 国产精品成人无码久久久久久 | 久久久久久久久无码精品亚洲日韩 | 99久久人人爽亚洲精品美女| 久久笫一福利免费导航| 久久国产精品久久| 天天躁日日躁狠狠久久| 亚洲中文字幕伊人久久无码 | 一97日本道伊人久久综合影院| 久久精品无码专区免费青青| 亚洲国产成人久久精品99| 婷婷综合久久狠狠色99h| 亚洲第一极品精品无码久久| 亚洲午夜精品久久久久久app| 国产成人99久久亚洲综合精品| 久久国产亚洲精品无码| 亚洲综合伊人久久大杳蕉| 婷婷国产天堂久久综合五月| 久久青青草原精品国产不卡| 久久综合日本熟妇| 欧美与黑人午夜性猛交久久久| 久久精品二区| 久久天天躁狠狠躁夜夜2020老熟妇| 国产精品亚洲美女久久久| 精品免费久久久久国产一区| 91久久精品无码一区二区毛片| 色成年激情久久综合| 精品无码久久久久久久动漫|