Question:What will be output if you will compile and execute the following c code?
#include<stdio.h>
int main(){
enum color{
RED,GREEN=-20,BLUE,YELLOW
};
enum color x;
x=YELLOW;
printf("%d",x);
return 0;
}
A -22
B -18
C 1
D Compiler error
E 0
+ AnswerB
+ Report