Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* 17. Write a program to print all values of enum */
- #include<stdio.h>
- #include<conio.h>
- enum month {JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC};
- void main()
- {
- int i;
- clrscr();
- for(i=JAN;i<=DEC;i++)
- {
- printf("\n %d",i);
- }
- getch();
- }
Add Comment
Please, Sign In to add comment