What will be the output of the following C code?
#include<stdio.h>
enum Shyam
{
a,b,c=5
};
enum Shyam s;
main()
{
c++;
printf("%d",c);
}
#include<stdio.h>
enum Shyam
{
a,b,c=5
};
enum Shyam s;
main()
{
c++;
printf("%d",c);
}
A. Error
B. 5
C. 6
D. 2
Answer: Option A
Join The Discussion