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 hashtable allow null values?

556


How do you find the size of an arraylist?

496


Define an algorithm.

653


How do you balance a tree?

580


What is a directed graph?

635






Does hashmap allow null keys?

541


Treemap orders the elements on which field?

600


How does hashset maintain order?

591


What is a string or array type?

540


What is data type in data structure?

600


Which sorting technique is faster?

578


What are the major data structures used in the rdbms?

654


If we try to add duplicate key to the hashmap, what will happen?

576


How to traverse data in a linked list in forward and backward direction, write the algorithm?

606


What is data structure and why we need it?

553