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

What is the default capacity of hashmap?

582


What is significance of ” * ” ?

796


What is entryset method in map?

651


Define an algorithm. What are the types of algorithms?

695


What does each entry in the link list called?

674


How does a selection sort work for an array?

695


What is difference between hashset and linkedhashset?

770


Which is the parent class of list class?

672


Define hashing?

775


Difference between calloc and malloc in data structures?

675


Differentiate between set and map.

773


What is homogeneous array?

632


Which sorting is best?

658


What do you mean by structure property in a heap?

733


What is a data structure definition?

717