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 / chris_sreekanth

1

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain spaghetti programming?

684


Write a code of a general series where the next element is the sum of last k terms.

594


An expression to whose value an operater is applied a) operand b) variable c) constant d) all of the above

657


Explain that why C is procedural?

659


How does struct work in c?

611






How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

614


How would you rename a function in C?

622


Write a client and server program in C language using UDP, where client program interact with the Server as given below: i) The client begins by sending a request to send a string of 8 characters or series of 7 numbers, the server sends back a characters or numbers as per the request of the client. ii) In case of series of 7 numbers: The client sends a multiplication of numbers, to the server. iii) In case of a string of 8 characters: The client sends a reverse order of string to the server.. iv) Server will send an acknowledgment to the client after receiving the correct answer

3843


What is difference between constant pointer and constant variable?

630


What is the use of a conditional inclusion statement in C?

602


What is console in c language?

609


How are variables declared in c?

599


What is volatile variable how do you declare it?

566


What is bash c?

558


What are types of structure?

604