Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. Is this a correct way for NULL pointer assignment?
    int i=0;
    char *q=(char*)i;

  2. A.
    Yes
    B.
    No

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    The correct way is char *q=0 (or) char *q=(char*)0


Be The First To Comment