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
Tell me do array subscripts always start with zero?
What are the different types of data structures?
Is it necessary to sort a file before searching a particular item ?
What are the benefits of using arrays?
What is data structure and why we need them?
What are the Differences between map and hashmap?
Which sorting algorithm is worst?
Explain stacks and queues in detail.
How do you find the size of an arraylist?
What are the advantages and disadvantages of copyonwritearraylist?
What are the major data structures used in the rdbms?
Define tree edge?
Define primary data structures?
When new data are to be inserted into a data structure?
What is mean by abstract data type?