Examveda

What will be the output of the following C code?
#include <stdio.h>
int main()
{
    int x = 0, y = 2;
    if (!x && y)
        printf("true\n");
    else
        printf("false\n");
}

A. True

B. False

C. Compile time error

D. Undefined behaviour

Answer: Option A


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals