• <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++博客 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

            NULL 0 \0以及nul的區(qū)別

            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'
            99久久99久久精品国产片果冻| 久久综合伊人77777| 久久久久亚洲精品天堂| 国产成人久久精品区一区二区| 精品精品国产自在久久高清| 国产国产成人久久精品| 99久久香蕉国产线看观香| 久久夜色精品国产网站| 久久久久亚洲AV综合波多野结衣| 久久精品国产亚洲AV蜜臀色欲| 国产精品久久久久aaaa| 久久99热这里只有精品66| 久久亚洲高清观看| 久久99精品久久久大学生| 亚洲伊人久久大香线蕉苏妲己| 伊人久久大香线焦AV综合影院| 久久久综合九色合综国产| 伊人久久精品无码二区麻豆| 国内精品久久久久久中文字幕 | 亚洲欧美久久久久9999| 国产成年无码久久久久毛片| 久久久久久久精品妇女99| 2020最新久久久视精品爱| 国产精品久久亚洲不卡动漫| 精品久久久一二三区| 久久丝袜精品中文字幕| 国产高清国内精品福利99久久| 久久精品无码午夜福利理论片| 麻豆国内精品久久久久久| 久久久久婷婷| 久久精品无码一区二区app| 色综合合久久天天综合绕视看| 国产午夜精品久久久久免费视| 久久久久久久久波多野高潮| 伊人久久成人成综合网222| 亚洲国产精品成人AV无码久久综合影院| 狠狠精品干练久久久无码中文字幕 | 国产91色综合久久免费| 日日噜噜夜夜狠狠久久丁香五月| 久久天天躁狠狠躁夜夜avapp| 中文精品久久久久人妻|