Enumeration in C Language


O LEVEL -PAPER 3rD -- M3-R4

C  LANGUAGE



 ENUMERATION IN C


enum in c,enumeration in c


HOW TO CREATE ENUMERATION VARIABLE IN C

A :-
enum in c,enumeration in c
enum declaration

B :-
enum in c,enumeration in c
declaration of enum variable


CHANGING THE DEFAULT VALUE OF ENUM ELEMENT


enum in c,enumeration in c
change enum default value


EXAMPLE OF ENUMERATION IN C




enum in c,enumeration in c
Example of enum in c



OUTPUT :-


Enter a number 5

Odd number

Enter a number 4

Even number


NOTE -- In above example return type keyword we use true or false as value of 0 and 1 because use enumerator. If this article is help ful then please share and comments...

Comments

Popular posts from this blog

Important Announcements(download all my book free)

O LEVEL- INTERNET TECHNOLOGY & WEB DESIGN

Call by Reference with Pointer in C Language part-4-a