

MCQOPTIONS
Saved Bookmarks
1. |
Predict the output of the following C code:#include int main(){enum ball {tennis, base, basket ,foot};enum sports {cricket, tennis};int a = 0;for(a = tennis; a <= foot; a++){printf("%d ", a);}return 0;} |
A. | cricket, tennis |
B. | compiler error |
C. | foot, basket, base, tennis |
D. | tennis, base, basket; foot |
Answer» C. foot, basket, base, tennis | |