• <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 閱讀(738) 評論(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'
            久久精品国产男包| 7国产欧美日韩综合天堂中文久久久久| 久久精品国产99国产精偷| 久久国产精品99精品国产987| 99热精品久久只有精品| 免费精品国产日韩热久久| 18岁日韩内射颜射午夜久久成人 | 久久精品国产清自在天天线| 久久99热这里只有精品国产| 午夜人妻久久久久久久久| 91久久精品视频| 精品国产乱码久久久久久人妻 | 欧美日韩中文字幕久久伊人| 色综合久久中文字幕综合网| 2021少妇久久久久久久久久| 久久人人爽人人爽人人片AV东京热| 久久久精品国产sm调教网站| 亚洲婷婷国产精品电影人久久| 久久91精品国产91久久户| 亚洲人成无码久久电影网站| 国产成人综合久久精品尤物| 国产69精品久久久久777| 亚洲一区精品伊人久久伊人| 精品久久久久久无码中文野结衣 | 久久久WWW成人免费毛片| 国产Av激情久久无码天堂| 色综合久久中文字幕无码| 久久青青草视频| 综合久久精品色| 中文成人无码精品久久久不卡 | 精品久久久久久无码免费| 久久精品九九亚洲精品天堂| 国产成人综合久久综合| 成人免费网站久久久| 97久久超碰国产精品2021| 久久精品国产亚洲AV无码娇色| 久久无码中文字幕东京热| 久久午夜无码鲁丝片秋霞| 伊人久久精品无码二区麻豆| 色婷婷久久综合中文久久蜜桃av| 中文字幕无码免费久久|