Point out the error (if any) in the following C code?
#include
enum hello
{
a,b,c;
};
main()
{
enum hello m;
printf("%d",m);
}
Answer: B
In the above code, there is a semi colon given at the end of the list of variables. This results in an error. Semi colon is to be put only after the closing brace of the enum, not after the list of variables.