Examveda
Examveda

What will be the output of the following C code?
#include <stdio.h>
enum m{JAN, FEB, MAR};
enum m foo();
int main()
{
    enum m i = foo();
    printf("%d\n", i);
}
int  foo()
{
    return JAN;
}

A. Compile time error

B. 0

C. Depends on the compiler

D. Depends on the standard

Answer: Option A


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function