search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
353 views
asked Geek 15.3k points 16 41 63

1 Answer

0 votes

 

#include<stdio.h>

#include<conio.h>

void main()

{

Enum month{Jan, Feb, mar, Apr, May, June, July, Aug, Sep, Oct, Nov, Dec}

clrscr();

printf(“\n Jan=%d”, Jan);

printf(“\n Feb=%d”, Feb);

printf(“\n June=%d”, June);

printf(“\n Dec=%d”, Dec);

getch();

}

Output:

Jan=0

Feb=1

June=5

Dec=11 

answered Guru 39.1k points 10 21 33

Related questions

0 votes
1 answer 36 views
0 votes
1 answer 36 views
36 views
asked keem Expert 13.2k points 27 40 59
0 votes
1 answer 931 views
931 views
Write a program in C to display a message without using semi colon anywhere in program
asked marvel
0 votes
1 answer 42 views
...