What are enumerations?

What are enumerations?

Enumeration is a kind of type.It is used to hold the group of constt values that are given by programmer.After defining we can use it like integer type.e.g.

enum off,on;
Here,off and on are 2 integer constants.These are called enumerators.By default value assign to enumurator are off. 

By:Vivek Kr. Agarwal
Date:2002-01-09 00:00:00

Post Your Answers

User Email:

User Name:

Related C Subjective Links

C Subjective interview questions and answers for experienced and fresher