Explain the term enumerations in C

Explain the term enumerations in C

A set of named integer constants is known as an enumeration. The enumeration type declaration includes the name of the enumeration tag and the definition of a set of named integers.
Ex: enum CITY { Mumbai, Bangalore, Chennai, NewDelhi } metros ;

Variables of enumeration type persists one of the existing values of the enumeration set. The enum type variables could be utilized in indexing expressions, as operands of all arithmetic and relational operators. ANSI C enum expressions are always have int type, which occupies the memory space that occupied by the int type.

enum DAY /* Defines an enumeration type */
saturday, /* Names day and declares a */
sunday = 0, /* variable named workday with */
monday, /* that type */
wednesday, /* wednesday is associated with 3 */
} workday;

saturday in the above example is associated with value 0 by default. The identifier sunday is explicitly assigned with 0. The remaining identifiers are given values 1 through 5 by default.
Storage allocation and scope of global, extern, static, local and register variables
The storage allocation / class determine the memory part where the storage space is allocated for variables, functions and how long the allocation of storage continues to exist......
Register variables. Advantages of using register variables
The variables of ‘register’ type modifier will inform the compiler for storing the variables in a register of CPU....
What is the use of typedef?
The keyword typedef is used for defining user defined data types. A new definition of existing data types is created by using typedef.....
Post your comment
Discussion Board
Hello There,

Thank you! Thank you! Thank you! Your blog was a total game changer!

By using the following package and procedure which are standard one we can update salary details.


We can see salary details in below table:
PER_PAY_PROPOSALS Using Assignment_id. Which is in PER_ALL_ASSIGNMENTS_F.

To change Supervisor use the following Package and Procedure.
Procedure Name: - UPDATE_EMP_ASG

To Change Organizaation use the following Package and Procedure.

We can see all assignment details in below table:

Will update the documents on them shortly

Thank you very much and will look for more postings from you.

Merci Beaucoup,

Radhey 05-24-2018
Hi There,

You make learning and reading addictive. All eyes fixed on you. Thank you being such a good and trust worthy guide.

I am struggling to import the attendance data for the employees that are in a sql server database into the application (Oracle E-Business Suite R12) if anyone has done such a thing please guide to a material or guidelines to implement such a solution, here is the client requirement:
- the attendance (punch in /out) data stored in a sql server database and the company want to integrate it with oracle application Self-Service in particular so any employee can see his attendance . we already established a database link between the 2 systems but i want a verified solution that has been done before.

Thanks a lot. This was a perfect asha24.com step-by-step guide
. Don’t think it could have been done better.

Irene hynes.
Irene Hynes 04-6-2018