What will be the output of the following C code? [code]#include<stdio.h> enum 123hoidap { a=1,b }; enum 123hoidap1 { c,d }; int

Tiên Hương

New member
What will be the output of the following C code?
Code:
#include<stdio.h>
enum 123hoidap
{
    a=1,b
};
enum 123hoidap1
{
    c,d
};
int main()
{
    enum 123hoidap1 s1=c;
    enum 123hoidap1 s=a;
    enum 123hoidap s2=d;
    printf("%d",s);
    printf("%d",s1);
    printf("%d",s2);
}
A. Error
B. 011
C. 110
D. 101
 

Tìm kiếm

Back
Top