Vidyalelo
C Programming · Q38

Control Structures

Programming · C Programming · question 38

Q38

What will be the output of the given program? #include void main() int value=0; if(value) printf("well done "); printf("examveda");

A.
well done examveda
B.
examveda
Answer
C.
complier error
D.
None of these

Answer: Option B

Solution

Answer: Option B
Solution:

As the value of variable value is zero so, it evaluates to false in the if condition.