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
write a c program to calculate sum of digits till it reduces to a single digit using recursion
Is register a keyword in c?
What is the difference between memcpy and memmove?
int far *near * p; means
Explain how can you restore a redirected standard stream?
Apart from dennis ritchie who the other person who contributed in design of c language.
What are c header files?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
Explain what is a stream?
What do you mean by invalid pointer arithmetic?
what is stack , heap ,code segment,and data segment
Explain what is meant by 'bit masking'?
In c language can we compile a program without main() function?
How do I get a null pointer in my programs?
Why is c called a structured programming language?