What is the output of this c code


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("%dn", k);

return 0;

}

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: What is the output of this c code
Reference No:- TGS01481279

Now Priced at $10 (50% Discount)

Recommended (97%)

Rated (4.9/5)