/* gcc -o example_c example_c.c */ #include static struct { char * x; int y; int z; } const data [3] = { { "-- 1", 2, 3 }, { "-- 4", 5, 6 }, { "-- 7", 8, 9 } }; int main (void) { int i; for (i = 0; i != 3; ++i) { printf ("\033[%c;3%cm%s%i%i\033[0m\n", i + '1', i + '1', data [i]. x, data [i]. y, data [i]. z); } return (0); }