C Programming :: Structures, Unions, Enums - Discussion
Home > C Programming > Structures, Unions, Enums > MCQs Questions Discussion
10 / 43
What is the output of the following 'C' program?
#include<stdio.h>
enum colors {BLACK,BLUE=-2,GREEN,YELLOW};
int main()
{
printf("%d..%d..%d..%d",BLACK,BLUE,GREEN,YELLOW);
return 0;
}
#include<stdio.h>
enum colors {BLACK,BLUE=-2,GREEN,YELLOW};
int main()
{
printf("%d..%d..%d..%d",BLACK,BLUE,GREEN,YELLOW);
return 0;
}
A0..2..3..4
B0..-2..-1..0
C0..1..2..3
D0..-2..1..2
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!