Vidyalelo
C Programming · Q63

C Fundamentals

Programming · C Programming · question 63

Q63

What will be the output of the following C function? #include enum birds SPARROW, PEACOCK, PARROT; enum animals TIGER = 8, LION, RABBIT, ZEBRA; int main() enum birds m = TIGER; int k; k = m; printf("%d ", k); return 0;

A.
0
B.
Compile time error
C.
1
D.
8
Answer

Answer: Option D

Solution

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