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
Explain how can I avoid the abort, retry, fail messages?
How can I write a function analogous to scanf?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
explain what is fifo?
In C language what is a 'dangling pointer'?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What does %p mean?
Why pointers are used in c?
What are local static variables?
Is c call by value?
What is the purpose of sprintf?
Why main is used in c?
What type is sizeof?
What is difference between far and near pointers?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()