Why enum can not be used directly with printf function?
Answer Posted / sudip
main()
{
enum color{
red,black,green,yellow,blue,pink,white
};
printf("%d",green);
printf("%d",yellow);
}
this gives me output.... 23
we can use it....?/ Correct me if I am wrong...
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Define union-by-weight?
Differentiate file structure from storage structure?
Give one example of right rotation.
How does a heap sort work?
Why is quicksort so fast?
Which sorting algorithms are in place?
What are the benefits of using arrays?
What is vector and types of vector?
Differentiate between failfast and failsafe.
How does quicksort partition work?
which is the simplest file structure? (Sequential, indexed, random)
Which sorting algorithm has minimum number of swaps?
Can we define the size of arraylist?
What is the minimization factor and time complexity of b-tree?
How does dynamic memory allocation help in managing data?