

MCQOPTIONS
Saved Bookmarks
1. |
Which of the following is the correct output for the program given below?
int main() { enum result {pass, fail, waiting}; enum result result1, result2, result3; stud1 = pass; stud2 = waiting; stud3 = fail; printf("%d %d %d n",result1, result2, result3); return 0; } |
A. | 0 1 2 |
B. | 1 2 3 |
C. | 0 2 1 |
D. | 1 3 2 |
Answer» D. 1 3 2 | |