Enum – C

#include<stdio.h>
int main()
{
enum Company{FACEBOOK, GOOGLE, TWITTER, PREQUELCODER};
enum Company facebook = FACEBOOK;
enum Company google = GOOGLE;
enum Company twitter = TWITTER;
enum Company prequelcoder = PREQUELCODER;
printf("The value of facebook is %d/n", facebook);
printf("The value of google is %d/n", google);
printf("The value of twitter is %d/n", twitter);
printf("The value of prequelcoder is %d/n",prequelcoder);
return 0;
}

Scroll to top