What will be the output of the following C code if input given is 2?
Posted: Wed Jul 13, 2022 7:55 pm
#include<stdio.h>
enum day
{
a,b,c=5,d,e
};
main()
{
printf("Enter the value for a");
scanf("%d",a);
printf("%d",a);
}
a) 2
b) 0
c) 3
d) Error
enum day
{
a,b,c=5,d,e
};
main()
{
printf("Enter the value for a");
scanf("%d",a);
printf("%d",a);
}
a) 2
b) 0
c) 3
d) Error