Question:What would be printed on the standard output as a result of the following code snippet?
main()
{
        enum {red, green, blue = 0, white};
        printf("%d %d %d %d", red, green, blue, white);
        return 0;
}
 

A Will result in Compilation Error 

B 0 1 2 3 

C 0 1 0 1 

D 0 1 0 2 

E Undefined 

+ Answer
+ Report
Total Preview: 457

Copyright © 2024. Powered by Intellect Software Ltd