How do you set a variable in a char array declaration?

Like, if you made a char array:

1
2
char Array[4][4] = {{"aa"},
                         {"aa"}};


How would I fit in a variable into the brackets to set a point as the variable? Is that only possible through this way?

Array[1][1]=SomeChar;
1
2
3
4
5
6
char Array[4][4] = {
    { 'a', 'a', 'a', 'a' },
    { 'b', 'b', 'b', 'b' },
    { 'c', 'c', 'c', 'c' },
    { 'd', 'd', 'd', 'd' }
};


Topic archived. No new replies allowed.