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 + 1, PARROT = SPARROW + MAX};
- int main()
- {
- enum bird b = PARROT;
- printf(ā%d\nā, b);
- return 0;
- }
a) Compilation error
b) 5
c) Undefined value
d) 2
