a enum data type in c with loop
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
Also in C:
- Title
- c concatenate strings
- Category
- C
- Title
- arduino knn
- Category
- C
- Title
- powershell list big files
- Category
- C
- Title
- remove element queue
- Category
- C
- Title
- accessing elements 2D array using pointers
- Category
- C
- Title
- char to int c
- Category
- C
- Title
- docker images command
- Category
- C
- Title
- generate all permutations of string
- Category
- C
- Title
- enum c
- Category
- C
- Title
- entity framework core discard changes
- Category
- C
- Title
- how to feed a char array to function in C
- Category
- C
- Title
- get_session` is not available when using TensorFlow 2.0.
- Category
- C
- Title
- c program to find the sum of given number using recursion
- Category
- C
- Title
- arduino digital input pins
- Category
- C
- Title
- c fill 2d array
- Category
- C
- Title
- how to check where the last char is in a string c
- Category
- C
- Title
- es palindromo
- Category
- C
- Title
- lazer codechef
- Category
- C
- Title
- triangulo
- Category
- C
- Title
- how to get user input in c
- Category
- C
- Title
- incompatible types when initializing type ‘float’ using type ‘point {aka struct point}’
- Category
- C
- Title
- factors using recursion
- Category
- C
- Title
- text wrap terminal colour
- Category
- C
- Title
- changing tuple values
- Category
- C
- Title
- how to write function in c
- Category
- C
- Title
- c bit access union
- Category
- C
- Title
- sum of arrays
- Category
- C
- Title
- ModuleNotFoundError: No module named 'easydict'
- Category
- C
- Title
- boolean function c
- Category
- C
- Title
- c check if char is an operator
- Category
- C
- Title
- sustituir un dígito por otro
- Category
- C
- Title
- declare integer c
- Category
- C
- Title
- hello world
- Category
- C
- Title
- how to find the ith row of pascal's triangle in c
- Category
- C
- Title
- update ubuntu in terminal
- Category
- C
- Title
- tkinter create_line
- Category
- C
- Title
- california
- Category
- C
- Title
- change plot line color in matplotlib
- Category
- C
- Title
- reset style matplotlib
- Category
- C
- Title
- how to pass an array to a thread in c?
- Category
- C
- Title
- c list
- Category
- C
- Title
- c how to define a variable
- Category
- C
- Title
- how to ascii art in c
- Category
- C
- Title
- how to comment in arduino
- Category
- C
- Title
- doubly linked list c
- Category
- C
- Title
- how to put a struct in another struct C
- Category
- C
- Title
- entete
- Category
- C
- Title
- arduino define
- Category
- C
- Title
- how to put quotes inside string c
- Category
- C
- Title
- array length c
- Category
- C
- Title
- Print the number 0 using write()
- Category
- C
- Title
- primo
- Category
- C
- Title
- xamarin command listview button
- Category
- C
- Title
- c pause for 1 second
- Category
- C
- Title
- how to do matrix multiplication in c
- Category
- C
- Title
- does strcat null terminate
- Category
- C
- Title
- how to check the size of a file c
- Category
- C
- Title
- powershell search big files
- Category
- C
- Title
- hentai clochette
- Category
- C
- Title
- c get first n characters of string
- Category
- C
- Title
- disable gnu++11 option
- Category
- C
- Title
- error: ‘cout’ was not declared in this scope
- Category
- C
- Title
- docker logs follow
- Category
- C
- Title
- ordenar un vector
- Category
- C
- Title
- for loop in c
- Category
- C
- Title
- how to use a pointer as a parameter in c
- Category
- C
- Title
- get configuration script window 7
- Category
- C
- Title
- fibonacci in c
- Category
- C
- Title
- oop244
- Category
- C
- Title
- how can i remove a specific item from an array
- Category
- C
- Title
- c check if array is empty
- Category
- C
- Title
- passing 'const char *' to parameter of type 'char *' discards qualifiers
- Category
- C
- Title
- declaring a volatile in c
- Category
- C
- Title
- duplicar cadena
- Category
- C
- Title
- vbl share price
- Category
- C
- Title
- write array of char to file in c
- Category
- C
- Title
- binary tree geekd for geeks
- Category
- C
- Title
- declare variable in c
- Category
- C
- Title
- how to go to top of file in vim
- Category
- C
- Title
- how to do Employing defensive code in the UI to ensure that the current frame is the most top level window
- Category
- C
- Title
- azure storage emulator config
- Category
- C
- Title
- variadic function in c
- Category
- C
- Title
- undefined symbols for architecture x86_64 in c
- Category
- C
- Title
- measure time in c
- Category
- C
- Title
- how to open chrome using cmd
- Category
- C
- Title
- a enum data type in c
- Category
- C
- Title
- c printf uint32_t
- Category
- C
- Title
- File "h5py\h5g.pyx", line 161, in h5py.h5g.create ValueError: Unable to create group (name already exists)
- Category
- C
- Title
- how to get random numbers in c
- Category
- C
- Title
- what is a long long int in c
- Category
- C
- Title
- v
- Category
- C
- Title
- concatenate two strings in c
- Category
- C
- Title
- c array
- Category
- C
- Title
- how to free memory in c
- Category
- C
- Title
- c check if char is number
- Category
- C
- Title
- classification report to excel
- Category
- C
- Title
- command line arguments c
- Category
- C
- Title
- what is x:Name Xamarin forms
- Category
- C
- Title
- if statement shorthand c
- Category
- C
- Title
- casting in c
- Category
- C