Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Define union-by-weight?

972


Differentiate file structure from storage structure?

910


Give one example of right rotation.

874


How does a heap sort work?

854


Why is quicksort so fast?

833


Which sorting algorithms are in place?

830


What are the benefits of using arrays?

989


What is vector and types of vector?

947


Differentiate between failfast and failsafe.

1114


How does quicksort partition work?

920


which is the simplest file structure? (Sequential, indexed, random)

1205


Which sorting algorithm has minimum number of swaps?

841


Can we define the size of arraylist?

873


What is the minimization factor and time complexity of b-tree?

1067


How does dynamic memory allocation help in managing data?

1461