Home » Technical Questions » Programming

enum colors {BLACK,BLUE,GREEN} main() { printf( "%d..%d..%d", BLACK, BLUE, GREEN ); return(1); }

Correct Answer: 0..1..2

Explanation:

enum assigns numbers starting from 0, if not explicitly defined.


← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion