Home » C Programming » Declarations and Initializations

What is the output of the program given below? #include<stdio.h> int main() { enum status { pass, fail, atkt}; enum status stud1, stud2, stud3; stud1 = pass; stud2 = atkt; stud3 = fail; printf("%d, %d, %d\n", stud1, stud2, stud3); return 0; }

← Previous Next →

Discussion & Comments

No comments yet. Be the first to comment!