What is the output of this C code? #include enum birds {SPARROW, PEACOCK, PARROT};..
What is the output of this C code?
- #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\n”, k);
- return 0;
- }
a) 0
b) Compile time error
c) 1
d) 8
