Vidyalelo
C Programming · Q70

Control Structures

Programming · C Programming · question 70

Q70

What will be the output of the following C code? #include int main() int x = 0; if (x == 0) printf("true, "); else if (x = 10) printf("false, "); printf("%d ", x);

A.
false, 0
B.
true, 0
Answer
C.
true, 10
D.
compile time error

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board