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

Explain in brief a linked list.

535


What do you mean by complexity of search algorithm?

401


What is the default capacity of hashmap?

409


What is a bubble sort and how do you perform it?

653


There are 2 int type array data type. One is containing 50 elements, and another one is containing 30 elements. Can we assign the array of 50 elements to an array of 30 elements?

837






What is a circular singly linked list?

499


What are arrays give example?

492


How to find 3rd element from end in a linked list in one pass?

460


Explain Queue

642


List the data structures which are used in rdbms, network data modal, and hierarchical data model.

510


Does hashset allow duplicates?

558


Can tuple be sorted?

496


What is a property class?

506


How would you swap the Kth node from beginning with Kth node from end in a Linked List.

558


Why is waste sorting important?

563