enum colors {BLACK,BLUE,GREEN}
main()
{

printf("%d..%d..%d",BLACK,BLUE,GREEN);

return(1);
}

Answer Posted / surenda pal singh chouhan

0..1..2

Explanation:
enum assigns numbers starting from 0, if not explicitly
defined

Is This Answer Correct ?    31 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many loops are there in c?

584


Is it possible to initialize a variable at the time it was declared?

757


Can we use visual studio for c?

556


Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?

1602


Is c language still used?

540






What are the uses of null pointers?

593


program to convert a integer to string in c language'

1988


write a c program to print the next of a particular no without using the arithmetic operator or looping statements?

3192


What is the equivalent code of the following statement in WHILE LOOP format?

772


What is a void pointer in c?

610


What is the most efficient way to count the number of bits which are set in an integer?

595


Why do we use namespace feature?

585


Do string constants represent numerical values?

927


What is the size of structure in c?

705


Define Array of pointers.

637