Code Snippets C

#include
enum spectrum { Blue, orange, cyan} colour;
char *rainbow[] = { "Blue", "orange", "cyan" };
int main() {
for ( colour = Blue; colour <= cyan; colour++ ) {
printf ( "%s ", rainbow[colour]);
}
printf ( "\n" );
}