a enum data type in c with loop
// 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
Also in C:
- table fixed header
- XAudio2 C
- excel cell blank or zero
- visual studio code
- c strcmp
- c check if array is empty
- int to float c
- powershell some fonts like #include are dissapearing
- subrayar elementos css
- Search Code Snippets
- how to break a loop in c
- array addition and multiplication in c
- curl post request
- atol c.
- error: expected declaration or statement at end of input
- find the largest number in else if javascript
- cant update windows
- c++ image processing
- powershell list big files
- slurm array job
- get current used proxy windows 7
- setup eslint vscode local project
- fgets in c
- even odd numer c