What is the output for the program given below
typedef enum grade{GOOD,BAD,WORST,}BAD;
main()
{
BAD g1;
g1=1;
printf("%d",g1);
}
Answer Posted / fefrf
In linux you get following error
enum.c:2: error: `BAD' redeclared as different kind of symbol
enum.c:2: error: previous declaration of `BAD'
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Write a program to check whether a number is prime or not using c?
What is d'n in c?
What are the 5 data types?
What is conio h in c?
Explain c preprocessor?
How many types of functions are there in c?
How can I call a function with an argument list built up at run time?
What are the different types of errors?
What is the full form of getch?
What is a header file?
What is %g in c?
What is your stream meaning?
What is the difference between procedural and declarative language?
When a c file is executed there are many files that are automatically opened what are they files?
In C language, a variable name cannot contain?