Why enum can not be used directly with printf function?

Answer Posted / rashmi p

enum is not an basic data type like int,float and all it is
a user defined data type, and printf function works only
with basic data type, we 've overload printf function to
make it work for user defined data types :)

Is This Answer Correct ?    21 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does treemap sort automatically?

496


Differentiate between iterable and iterator.

671


How does a treemap sort?

424


When will we get ArrayStoreException?

742


What the principle of quick sort and its complexity?

539






What do you know about different sorting algorithms?

525


Provide an algorithm to reverse a linked list without using recursion.

514


What are the major data structures used in the following areas : network data model & hierarchical data model?

583


what is the difference between Linear Array and Linked List?

580


Mention the advantages of representing stacks using linked lists than arrays?

486


What is Insertion sort, selection sort, bubble sort( basic differences among the functionality of the three sorts and not the exact algorithms)?

516


How many types of linked lists are there?

441


What is the use of substring?

461


Differentiate between queue and stack.

681


Why do we study data structures?

485