Ah si, giusto. L'avevo tenuto con i case da 0 a 9.

Compilando mi vengono fuori questi errori sulla riga x = "rosso"; dopo averla dichiarata char x[10] e sul for

resistenze.c:12:4: error: incompatible types when assigning to type ‘char[10]’ from type ‘char *’
resistenze.c:14:13: error: incompatible types when assigning to type ‘const char *[10]’ from type ‘int’