Home » C Programming » Variables » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int *p;
    int main()
    {
    if (p == 0)
    printf("Hey\n");
    return 0;
    }
    1. Hey
    2. Compilation Error
    3. Hey only if NULL value is 0
    4. Nothing
    5. None of these
Correct Option: C

Hey only if NULL value is 0



Your comments will be displayed only after manual approval.