• <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'
            久久久无码精品午夜| 久久人妻少妇嫩草AV无码专区| 国产精品久久久久影院嫩草| 日韩欧美亚洲综合久久影院d3| 欧美日韩精品久久久久| 欧美亚洲色综久久精品国产| 久久精品国产72国产精福利| 人妻无码αv中文字幕久久琪琪布| 久久亚洲AV成人出白浆无码国产| 久久亚洲高清观看| 久久久国产视频| 国产精品内射久久久久欢欢| 亚洲中文字幕久久精品无码APP| 青青草原综合久久| 国产亚洲精品美女久久久| 噜噜噜色噜噜噜久久| 久久久精品久久久久特色影视| 99久久超碰中文字幕伊人| 久久久久久国产a免费观看黄色大片| 99久久免费国产精品| 精品免费久久久久久久| 久久SE精品一区二区| 亚洲欧美一级久久精品| 久久国产精品免费| 国产亚洲美女精品久久久| 亚洲国产精品人久久| 久久国产乱子精品免费女| 国产欧美久久一区二区| 99久久er这里只有精品18| 久久99精品久久久久子伦| 亚洲AV无码久久| 久久精品毛片免费观看| 亚洲va久久久噜噜噜久久男同 | 久久久久久午夜成人影院 | 精品国产91久久久久久久a| 99久久综合狠狠综合久久止| 91久久精一区二区三区大全| 99久久精品影院老鸭窝| 久久av免费天堂小草播放| 久久中文字幕无码专区| 伊人久久精品影院|