Hello everyone,
Am learning C programming from "Programming In C" by "Stephen Kochan". The following para has been copied from the book straightaway coz I want you guys to explain me the part in bold.
As with one-dimensional arrays, it is not required that the entire array be initialized. A statement such as
int M[4][5] = {
{ 10, 5, -3 },
{ 9, 0, 0 },
{ 32, 20, 1 },
{ 0, 0, 8 }
};
only initializes the first three elements of each row of the matrix to the indicated values. The remaining values are set to 0 . Note that, in this case, the inner pairs of braces are required to force the correct initialization.Without them, the first two rows and the first two elements of the 3rd row would have been initialized instead. (Verify to yourself that this is the case.)
Please help