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

KellyPoima

New member
What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int x = 1, y = 2;
        int z = x & y == 2;
        printf("%d\n", z);
    }
A. 0
B. 1
C. Compile time error
D. Undefined behaviour
 

Tìm kiếm

Back
Top