What will be the output of the following C code? [code] #include <stdio.h> int main() { int x = 1, y = 2; if

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int x = 1, y = 2;
        if (x && y == 1)
            printf("true\n");
        else
            printf("false\n");
    }
A. true
B. false
C. compile time error
D. undefined behaviour
 

Tìm kiếm

Back
Top