Point out the error( if any) in the following code.
#include<stdio.h>
enum India
{
a,b,c
};
enum India g;
main()
{
g++;
printf("%d",g);
}
#include<stdio.h>
enum India
{
a,b,c
};
enum India g;
main()
{
g++;
printf("%d",g);
}A. Error in the statement: a,b,c
B. Error in the statement: enum India g;
C. Error in the statement: g++
D. No error
Answer: Option D

Join The Discussion