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