enum colors {BLACK,BLUE,GREEN}
main()
{
printf("%d..%d..%d",BLACK,BLUE,GREEN);
return(1);
}
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / vignesh1988i
the ascii values of B,B,G will be printed..............
since these black,blue and green are strings given directly
in the printf statements..... so the base address will be
going to the function definition of printf......
| Is This Answer Correct ? | 0 Yes | 13 No |
How can variables be characterized?
Write a program to show the change in position of a cursor using c
What is the difference between text and binary i/o?
What is nested structure with example?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is the correct code to have following output in c using nested for loop?
write a program for egyptian fractions in c?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
why to assign a pointer to null sometimes??how can a pointer we declare get assigned with a garbage value by default???
what r the cpu registers r ther?
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
What is the scope of static variable in c?