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

A 0 1 6 2 

B 0 1 6 7 

C Will result in Compilation Error 

D 0 1 6 8 

E None 

+ Answer
+ Report
Total Preview: 2178

Copyright © 2024. Powered by Intellect Software Ltd