Examveda
Examveda

What will be the output of the following C function?
#include <stdio.h>
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

Answer: Option D


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals