Question: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? 

A 7 

B 8 

C 9 

D 10 

+ Answer
+ Report
Total Preview: 1495

Copyright © 2024. Powered by Intellect Software Ltd