What will be the output of the following C code? [code] #include <stdio.h> int main() { int a = -1, b = 4, c = 1, d;

What will be the output of the following C code?
Code:
    #include <stdio.h>
    int main()
    {
        int a = -1, b = 4, c = 1, d;
        d = ++a && ++b || ++c;
        printf("%d, %d, %d, %d\n", a, b, c, d);
        return 0;
    }
A. 0, 4, 2, 1
B. 0, 5, 2, 1
C. -1, 4, 1, 1
D. 0, 5, 1, 0
 

Tìm kiếm

Back
Top