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

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

Tìm kiếm

Back
Top