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
How a string is stored in c?
What are local static variables? How can you use them?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
How can you find the day of the week given the date?
Why is it usually a bad idea to use gets()? Suggest a workaround.
How to write c functions that modify head pointer of a linked list?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Can main () be called recursively?
Is c high or low level?
What is the general form of #line preprocessor?
What happens if header file is included twice?
What are local static variables?
Write a program on swapping (100, 50)
What is the full form of getch?
What is void c?