Examveda
Examveda

What will be the output of the following C code?
#include<stdio.h>
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: Option D


This Question Belongs to C Program >> C Fundamentals

Join The Discussion

Related Questions on C Fundamentals