Program:
#include<stdio.h>
#include<conio.h>
int main( )
{
enum status
{
pass,fail,dist
};
enum status student1, student2, student3;
student1 = pass;
student2 = dist;
student3 = fail;
printf("%d,%d,%d",student1,student2,student3);
return 0;
}
Output:
0,2,1
0 comments:
Post a Comment