Question: What is the output of the program given below? #include int main() { enum status { pass, fail, atkt}; enum status stud1, stud2, stud3; stud1

What is the output of the program given below?


#include int main()

{

enum status { pass, fail, atkt};

enum status stud1, stud2, stud3;

stud1 = pass;

stud2 = atkt;

stud3 = fail;

printf("%d, %d, %d", stud1, stud2, stud3);

return0;

}


A) 0, 1, 2

B) 1, 2, 3

C) 0, 2,1

D) 1, 3, 2

Step by Step Solution

3.50 Rating (170 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question i... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!