Nguyễn Tân
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 = 0;
if (x++)
printf("true\n");
else if (x == 1)
printf("false\n");
}
B. false
C. compile time error
D. undefined behaviour