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