I want to do the following
char a[] = { \'A\', \'B\', \'C\', \'D\'};
But I do not want to write these characters separately. I want somethi
Here is obscure solution: define macro function:
#define Z(x) \ (x==0 ? 'A' : \ (x==1 ? 'B' : \ (x==2 ? 'C' : '\0'))) char x[] = { Z(0), Z(1), Z(2) };