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

Right



Your comments will be displayed only after manual approval.