Vidyalelo
C Programming · Q160

C Fundamentals

Programming · C Programming · question 160

Q160

What will be the output of the following C code? #include enum Ram a=1,b ; enum Shyam c,d ; int main() enum Shyam s1=c; enum Shyam s=a; enum Ram s2=d; printf("%d",s); printf("%d",s1); printf("%d",s2);

A.
Error
B.
011
C.
110
D.
101
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board