What will be the output of the following C code?
#include<stdio.h>
enum colour
{
blue, red, yellow
};
main()
{
enum colour c;
c=yellow;
printf("%d",c);
}
#include<stdio.h>
enum colour
{
blue, red, yellow
};
main()
{
enum colour c;
c=yellow;
printf("%d",c);
}A. 1
B. 2
C. 0
D. Error
Answer: Option B

Join The Discussion