close

null pointer is a special pointer value that is known not to point anywhere.

The most straightforward way to ``get'' a null pointer in your program is by using the predefined constant NULL.

int *ip = NULL;

it is also possible to refer to the null pointer by using a constant 0.

int *ip = 0;
(In fact, NULL is a preprocessor macro which typically has the value, or replacement text, 0.)


 

ref : http://www.eskimo.com/~scs/cclass/notes/sx10d.html

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 JerryCheng 的頭像
    JerryCheng

    KwCheng's blog

    JerryCheng 發表在 痞客邦 留言(0) 人氣()