Question
#include<stdio.h>
int main()
{
enum status {pass, fail, absent};
enum status stud1, stud2, stud3;
stud1 = pass;
stud2 = absent;
stud3 = fail;
printf("%d %d %d\n" , stud1, stud2, stud3);
return 0;
What will be the output of the program ?
#include<stdio.h>
int main()
{
enum status {pass, fail, absent};
enum status stud1, stud2, stud3;
stud1 = pass;
stud2 = absent;
stud3 = fail;
printf("%d %d %d\n" , stud1, stud2, stud3);
return 0;
Answer: Option C
Was this answer helpful ?
No answer description available for this question.
Was this answer helpful ?
More Questions on This Topic :
Question 10.
How will you free the allocated memory ?
....
Submit Solution