Nice article!
int main(void) {
// initialize data of matrices to perform matrix multiplication
const int rows_A = 4, cols_A = 2;
float matrix_A[rows_A * cols_A] = {
2, 8,
5, 1,
4, 2,
8, 6
};
const int rows_B = 3, cols_B = 2;
float matrix_B[rows_B * cols_B] = {
10, 5,
9, 9,
5, 4
};
My compiler is complaining stating
error: variable-sized object may not be initialized except with an empty initializer
9 | float matrix_A[rows_A * cols_A] = {
| ^
Did you not face this problem, just curious!