Home » C Programming » Operators » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    int num = 0;
    if (num = 0)
    {
    printf("It's zero\n");
    }
    else
    {
    printf("It's not zero\n");
    }
    }
    1. Compilation Error
    2. It's zero
    3. Runtime Error
    4. It's not zero
    5. None of these
Correct Option: D

It's not zero



Your comments will be displayed only after manual approval.