Consider the following code:
#include<stdio.h>
int main(int argc, char* argv[])
{
enum Colors
{
red,
blue,
white = 5,
yellow,
green,
pink
};
Colors color = green;
printf("%d", color);
return 0;
}
What will be the output when the above code is compiled and executed?
Correct Answer: 7
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More C++ MCQ Questions