Vidyalelo
C Programming · Q281

C Fundamentals

Programming · C Programming · question 281

Q281

What will be the output of the following C code? #include enum example a = 1, b, c; enum example example1 = 2; enum example answer() return example1; int main() (answer() == a)? printf("yes"): printf("no"); return 0;

A.
yes
B.
no
Answer
C.
2
D.
error

Answer: Option B

Solution

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