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 / vijay r15

error

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many header files are in c?

540


Define Array of pointers.

621


Explain how can you tell whether two strings are the same?

576


How can I determine whether a machines byte order is big-endian or little-endian?

607


What is the explanation for the dangling pointer in c?

664






What are preprocessor directives in c?

626


What is main () in c language?

584


What will be the outcome of the following conditional statement if the value of variable s is 10?

751


What are pointers?

621


What are the advantages of using Unions?

637


How can I change the size of the dynamically allocated array?

620


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

587


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

1512


What is FIFO?

661


What is meant by initialization and how we initialize a variable?

577