What I want to do is this:
#define A 1
#define B 2
#define C 99
const char row1[] = {A|B, B, A, C};
const char row2[] = {B, A, C};
...
const char row99[] = {B, A, B ,A, A, C};
const char *test[]= {row1, row2, ... , row99};
My question is how can I achieve the above with something like this:
#define A 1
#define B 2
#define C 99
const char *test[] = {
{A|B, B, A, C},
{B, A, C},
....
{B, A, B ,A, A, C}
}
I do not want fixed length 2D array like this:
test[][5] = { {A|B, B, A, C}, {B, A, C}, ...
and also I need the #define and use those token in the initialization.
much appreciated if anybody can show me the correct syntax to do this. thnx.