MCQ
Single Best Answer
Not Set
QWhat will be the output of the program?
#include
int main()
{
enum days {MON=-1, TUE, WED=6, THU, FRI, SAT};
printf("%d, %d, %d, %d, %d, %d\n", ++MON, TUE, WED, THU, FRI, SAT);
return 0;
}
ID: #2686
Union in C Language
833 views
Question Info
#2686Q ID
Not SetDifficulty
Union in C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer: Option B
Explanation
Because ++ or -- cannot be done on enum value.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic