Declare an array as shown earlier:
char header[3];
We can then set the array values individually as seen bellow so each value in the array has an initial value.
header[0] = '0';
header[1] = '1';
header[2] = '2';
but this can be tedious if the array were larger.
Recall, for scalar variables (variables which hold a single data item), we were able to initialize their value as part of the declaration:
int i = 0;
float pi = 3.14159;
We can do the same thing with arrays, only we may specifiy more than one value; one for each element of the array. We do this with a comma separated list of values enclosed in brackets:
char header[SHELLS] = { '0', '1', '2'};
which initializes the first 3 elements of the array, header. We do not need to list values for all elements when initializing an array, any remaining elements are left uninitialized.