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
What are the various types of control structures in programming?
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
Is c# a good language?
What are the types of i/o functions?
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Do variables need to be initialized?
writ a program to compare using strcmp VIVA and viva with its output.
What is a good data structure to use for storing lines of text?
How many keywords are there in c?
Which is better pointer or array?
Can we declare variable anywhere in c?
What is structure pointer in c?
what is the structure pointer?
How to draw the flowchart for structure programs?
Can you please explain the difference between syntax vs logical error?