Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

enum example c programming

// 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;
}
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #enum #programming
ADD COMMENT
Topic
Name
9+9 =