Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. Is there any difference between the following two statements?
    char *p=0;
    char *t=NULL;

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    NULL is #defined as 0 in the 'stdio.h' file. Thus, both p and t are NULL pointers.


Be The First To Comment