I can easily do "char c = 219;" and it outputs the █ char when i print c. No problem there. But when I do
char colorlist[5] = {32, 176, 177, 178, 219};
printf("%c", colorlist[4]);
It doesn't work. I want, that f.e. if I type printf("%c", colorlist[4]);
, it should print █.
But I get an error while initializing. How can I initialize chars in an initializer list by their corresponding number?