a enum data type in c
// example program to demonstrate working
// of enum in C
#include<stdio.h>
enum year{Jan, Feb, Mar, Apr, May, Jun, Jul,
Aug, Sep, Oct, Nov, Dec};
int main()
{
int i;
for (i=Jan; i<=Dec; i++)
printf("%d ", i);
return 0;
}
// OUTPUT
0 1 2 3 4 5 6 7 8 9 10 11// An example program to demonstrate working
// of enum in C
#include<stdio.h>
enum week{Mon, Tue, Wed, Thur, Fri, Sat, Sun};
int main()
{
enum week day;
day = Wed;
printf("%d",day);
return 0;
}
// OUTPUT
2
Also in C:
- Write a interactive C program to find the MINIMUM array elements in a given 3X3 matrix.
- how to add user to role postgresql
- android is not recognized
- a enum data type in c with loop
- c defined value sum
- iulia vântur
- passing 2d array as parameter to function in c
- how to limit tiktok on mikrotik
- entity framework core discard changes
- c return
- struct Node** head_ref
- multiplication in c
- raspberry install last kernel
- how to get a lonng in scanf in c
- c
- how to transfer textbox fro string to integer vb.net
- learn assembly language
- pasar a binario recursivo
- how to get random numbers in c
- C typedef
- remove element from np array
- difference between unsigned and signed
- even odd numer c
- typedef in c