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};..

What is the output of this C code?

  1. #include
  2. enum birds {SPARROW, PEACOCK, PARROT};
  3. enum animals {TIGER = 8, LION, RABBIT, ZEBRA};
  4. int main()
  5. {
  6. enum birds m = TIGER;
  7. int k;
  8. k = m;
  9. printf(“%d\n”, k);
  10. return 0;
  11. }

a) 0
b) Compile time error
c) 1
d) 8