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
Can arraylist store int?
Is array immutable?
Can you store different types in an array?
If we add enum constants to a sorted collection ( treemap , treeset ), what will be the order in which they will be maintained?
What is array indexing?
Define binary tree insertion.
Is radix sort stable?
How do you explain bubble sort?
Which of the collections allows null as the key?
What is the complexity of arraylist?
How do you do a heap sort?
Why linked lists are better than arrays?
What is huffman’s algorithm?
What are the advantages of merge sort?
Is Arraylist faster than Array? Why?