What is the output of this C code? #include #define MAX 2 enum bird {SPARROW = MAX +

What is the output of this C code? #include #define MAX 2 enum bird {SPARROW = MAX +

What is the output of this C code?

  1. #include
  2. #define MAX 2
  3. enum bird {SPARROW = MAX + 1, PARROT = SPARROW + MAX};
  4. int main()
  5. {
  6. enum bird b = PARROT;
  7. printf(ā€œ%d\nā€, b);
  8. return 0;
  9. }

a) Compilation error
b) 5
c) Undefined value
d) 2